Expose GetModuleName() outside TracyCallstack.cpp.

This commit is contained in:
Bartosz Taudul 2021-11-25 21:56:13 +01:00
parent 2bd1e5bca7
commit 1ed174c1b6
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 2 additions and 1 deletions

View File

@ -235,7 +235,7 @@ const char* DecodeCallstackPtrFast( uint64_t ptr )
return ret; return ret;
} }
static const char* GetModuleName( uint64_t addr ) const char* GetModuleName( uint64_t addr )
{ {
if( ( addr >> 63 ) != 0 ) if( ( addr >> 63 ) != 0 )
{ {

View File

@ -51,6 +51,7 @@ CallstackSymbolData DecodeCodeAddress( uint64_t ptr );
const char* DecodeCallstackPtrFast( uint64_t ptr ); const char* DecodeCallstackPtrFast( uint64_t ptr );
CallstackEntryData DecodeCallstackPtr( uint64_t ptr ); CallstackEntryData DecodeCallstackPtr( uint64_t ptr );
void InitCallstack(); void InitCallstack();
const char* GetModuleName( uint64_t addr );
#if TRACY_HAS_CALLSTACK == 1 #if TRACY_HAS_CALLSTACK == 1