diff options
Diffstat (limited to 'public/client/TracyCallstack.hpp')
-rw-r--r-- | public/client/TracyCallstack.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/public/client/TracyCallstack.hpp b/public/client/TracyCallstack.hpp index 5c24e7db..0b522b73 100644 --- a/public/client/TracyCallstack.hpp +++ b/public/client/TracyCallstack.hpp @@ -2,6 +2,7 @@ #define __TRACYCALLSTACK_HPP__ #include "../common/TracyApi.h" +#include "../common/TracyForceInline.hpp" #include "TracyCallstack.h" #if TRACY_HAS_CALLSTACK == 2 || TRACY_HAS_CALLSTACK == 5 @@ -11,7 +12,14 @@ #endif -#ifdef TRACY_HAS_CALLSTACK +#ifndef TRACY_HAS_CALLSTACK + +namespace tracy +{ +static tracy_force_inline void* Callstack( int depth ) { return nullptr; } +} + +#else #ifdef TRACY_DEBUGINFOD # include <elfutils/debuginfod.h> @@ -21,7 +29,6 @@ #include <stdint.h> #include "../common/TracyAlloc.hpp" -#include "../common/TracyForceInline.hpp" namespace tracy { |