Wrap malloc/free.

This commit is contained in:
Bartosz Taudul 2017-10-14 16:52:05 +02:00
parent 1048017bfd
commit b75317be7d

21
client/TracyAlloc.hpp Normal file
View 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