mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-11 11:25:23 +00:00
Merge pull request #1398 from Lectem/fix/concurrentqueue-and-malloc-define
WORKAROUND_malloc/free should properly route to tracy_malloc/free
This commit is contained in:
@@ -171,8 +171,8 @@ struct ConcurrentQueueDefaultTraits
|
||||
#if defined(malloc) || defined(free)
|
||||
// Gah, this is 2015, stop defining macros that break standard code already!
|
||||
// Work around malloc/free being special macros:
|
||||
static inline void* WORKAROUND_malloc(size_t size) { return malloc(size); }
|
||||
static inline void WORKAROUND_free(void* ptr) { return free(ptr); }
|
||||
static inline void* WORKAROUND_malloc(size_t size) { return tracy::tracy_malloc(size); }
|
||||
static inline void WORKAROUND_free(void* ptr) { return tracy::tracy_free(ptr); }
|
||||
static inline void* (malloc)(size_t size) { return WORKAROUND_malloc(size); }
|
||||
static inline void (free)(void* ptr) { return WORKAROUND_free(ptr); }
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user