From e9664a1c878f59fd978e5f45217bc00b28922a8a Mon Sep 17 00:00:00 2001 From: "Igor S. Gerasimov" Date: Fri, 27 Dec 2024 09:50:06 +0100 Subject: [PATCH] Introduce has_stacktrace function --- public/client/TracyCallstack.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/client/TracyCallstack.hpp b/public/client/TracyCallstack.hpp index fdc9345d..c7e104ca 100644 --- a/public/client/TracyCallstack.hpp +++ b/public/client/TracyCallstack.hpp @@ -9,6 +9,7 @@ namespace tracy { +static constexpr bool has_stacktrace() { return false; } static tracy_force_inline void* Callstack( int /*depth*/ ) { return nullptr; } } @@ -38,6 +39,8 @@ static tracy_force_inline void* Callstack( int /*depth*/ ) { return nullptr; } namespace tracy { +static constexpr bool has_stacktrace() { return true; } + struct CallstackSymbolData { const char* file;