mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Fallback to callback-less version of macros if no callback support.
This commit is contained in:
parent
9b1fb01e16
commit
288744273b
10
Tracy.hpp
10
Tracy.hpp
@ -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 );
|
||||||
#define TracyAllocS( ptr, size, depth ) tracy::Profiler::MemAllocCallstack( ptr, size, depth );
|
|
||||||
#define TracyFreeS( ptr, depth ) tracy::Profiler::MemFreeCallstack( ptr, depth );
|
#ifdef TRACY_HAS_CALLSTACK
|
||||||
|
# define TracyAllocS( ptr, size, depth ) tracy::Profiler::MemAllocCallstack( ptr, size, 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