mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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…
x
Reference in New Issue
Block a user