Skip to content

Commit 9ab39d8

Browse files
authored
Merge pull request #1398 from Lectem/fix/concurrentqueue-and-malloc-define
WORKAROUND_malloc/free should properly route to tracy_malloc/free
2 parents 66e4f5c + bfab6d0 commit 9ab39d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

public/client/tracy_concurrentqueue.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ struct ConcurrentQueueDefaultTraits
171171
#if defined(malloc) || defined(free)
172172
// Gah, this is 2015, stop defining macros that break standard code already!
173173
// Work around malloc/free being special macros:
174-
static inline void* WORKAROUND_malloc(size_t size) { return malloc(size); }
175-
static inline void WORKAROUND_free(void* ptr) { return free(ptr); }
174+
static inline void* WORKAROUND_malloc(size_t size) { return tracy::tracy_malloc(size); }
175+
static inline void WORKAROUND_free(void* ptr) { return tracy::tracy_free(ptr); }
176176
static inline void* (malloc)(size_t size) { return WORKAROUND_malloc(size); }
177177
static inline void (free)(void* ptr) { return WORKAROUND_free(ptr); }
178178
#else

0 commit comments

Comments
 (0)