1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Introduce has_stacktrace function

This commit is contained in:
Igor S. Gerasimov 2024-12-27 09:50:06 +01:00
parent aa28504c60
commit e9664a1c87

View File

@ -9,6 +9,7 @@
namespace tracy namespace tracy
{ {
static constexpr bool has_stacktrace() { return false; }
static tracy_force_inline void* Callstack( int /*depth*/ ) { return nullptr; } 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 namespace tracy
{ {
static constexpr bool has_stacktrace() { return true; }
struct CallstackSymbolData struct CallstackSymbolData
{ {
const char* file; const char* file;