mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Define ___tracy_demangle on Android.
This commit is contained in:
parent
469774b1a9
commit
0b1e5d2c96
@ -52,6 +52,20 @@ extern "C"
|
||||
};
|
||||
#endif
|
||||
|
||||
#if TRACY_HAS_CALLSTACK == 2 || TRACY_HAS_CALLSTACK == 3 || TRACY_HAS_CALLSTACK == 4 || TRACY_HAS_CALLSTACK == 5 || TRACY_HAS_CALLSTACK == 6
|
||||
extern "C" int ___tracy_demangle( const char* mangled, char* out, size_t len );
|
||||
|
||||
#ifndef TRACY_DEMANGLE
|
||||
extern "C" int ___tracy_demangle( const char* mangled, char* out, size_t len )
|
||||
{
|
||||
if( !mangled || mangled[0] != '_' ) return 0;
|
||||
int status;
|
||||
abi::__cxa_demangle( mangled, out, &len, &status );
|
||||
return status == 0;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
@ -536,18 +550,6 @@ CallstackEntryData DecodeCallstackPtr( uint64_t ptr )
|
||||
|
||||
#elif TRACY_HAS_CALLSTACK == 2 || TRACY_HAS_CALLSTACK == 3 || TRACY_HAS_CALLSTACK == 4 || TRACY_HAS_CALLSTACK == 6
|
||||
|
||||
extern "C" int ___tracy_demangle( const char* mangled, char* out, size_t len );
|
||||
|
||||
#ifndef TRACY_DEMANGLE
|
||||
extern "C" int ___tracy_demangle( const char* mangled, char* out, size_t len )
|
||||
{
|
||||
if( !mangled || mangled[0] != '_' ) return 0;
|
||||
int status;
|
||||
abi::__cxa_demangle( mangled, out, &len, &status );
|
||||
return status == 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
enum { MaxCbTrace = 16 };
|
||||
|
||||
struct backtrace_state* cb_bts;
|
||||
|
Loading…
Reference in New Issue
Block a user