From b75317be7da46d6ae49df138610f3408a86e78fc Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 14 Oct 2017 16:52:05 +0200 Subject: [PATCH] Wrap malloc/free. --- client/TracyAlloc.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 client/TracyAlloc.hpp 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