diff --git a/client/TracyAlloc.hpp b/client/TracyAlloc.hpp new file mode 100644 index 00000000..15e5b6ce --- /dev/null +++ b/client/TracyAlloc.hpp @@ -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