mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Fallback to callback-less version of macros if no callback support.
This commit is contained in:
parent
9b1fb01e16
commit
288744273b
@ -64,8 +64,14 @@
|
|||||||
|
|
||||||
#define TracyAlloc( ptr, size ) tracy::Profiler::MemAlloc( ptr, size );
|
#define TracyAlloc( ptr, size ) tracy::Profiler::MemAlloc( ptr, size );
|
||||||
#define TracyFree( ptr ) tracy::Profiler::MemFree( ptr );
|
#define TracyFree( ptr ) tracy::Profiler::MemFree( ptr );
|
||||||
|
|
||||||
|
#ifdef TRACY_HAS_CALLSTACK
|
||||||
# define TracyAllocS( ptr, size, depth ) tracy::Profiler::MemAllocCallstack( ptr, size, depth );
|
# define TracyAllocS( ptr, size, depth ) tracy::Profiler::MemAllocCallstack( ptr, size, depth );
|
||||||
# define TracyFreeS( ptr, depth ) tracy::Profiler::MemFreeCallstack( ptr, depth );
|
# define TracyFreeS( ptr, depth ) tracy::Profiler::MemFreeCallstack( ptr, depth );
|
||||||
|
#else
|
||||||
|
# define TracyAllocS( ptr, size, depth ) TracyAlloc( ptr, size )
|
||||||
|
# define TracyFreeS( ptr, depth ) TracyFree( ptr )
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user