mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Wrap malloc/free.
This commit is contained in:
parent
1048017bfd
commit
b75317be7d
21
client/TracyAlloc.hpp
Normal file
21
client/TracyAlloc.hpp
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef __TRACYALLOC_HPP__
|
||||
#define __TRACYALLOC_HPP__
|
||||
|
||||
#include "tracy_rpmalloc.hpp"
|
||||
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
static inline void* tracy_malloc( size_t size )
|
||||
{
|
||||
return rpmalloc( size );
|
||||
}
|
||||
|
||||
static inline void tracy_free( void* ptr )
|
||||
{
|
||||
rpfree( ptr );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user