mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Introduce has_stacktrace function
This commit is contained in:
parent
aa28504c60
commit
e9664a1c87
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user