mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Return typeless pointer.
This commit is contained in:
parent
827900969f
commit
ca499eefaf
@ -31,7 +31,7 @@ struct CallstackEntry
|
||||
void InitCallstack();
|
||||
CallstackEntry DecodeCallstackPtr( uint64_t ptr );
|
||||
|
||||
static tracy_force_inline const char* Callstack()
|
||||
static tracy_force_inline void* Callstack()
|
||||
{
|
||||
enum { StackDepth = 24 };
|
||||
static_assert( StackDepth <= 63, "Stack depth can't be greater than 63." );
|
||||
@ -40,7 +40,7 @@ static tracy_force_inline const char* Callstack()
|
||||
const auto num = RtlCaptureStackBackTrace( 0, StackDepth, (void**)( trace+1 ), nullptr );
|
||||
*trace = num;
|
||||
|
||||
return (const char*)trace;
|
||||
return trace;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user