From 01e5c289b77e9ebde34ffa25e1559f970ec250ad Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 22 Oct 2020 22:24:32 +0200 Subject: [PATCH] Add tracy_realloc() function. --- common/TracyAlloc.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/TracyAlloc.hpp b/common/TracyAlloc.hpp index 82cc48f2..a3cbec05 100644 --- a/common/TracyAlloc.hpp +++ b/common/TracyAlloc.hpp @@ -28,6 +28,15 @@ static inline void tracy_free( void* ptr ) #endif } +static inline void* tracy_realloc( void* ptr, size_t size ) +{ +#ifdef TRACY_ENABLE + return rprealloc( ptr, size ); +#else + return realloc( ptr, size ); +#endif +} + } #endif