mirror of
https://github.com/wolfpld/tracy
synced 2026-01-19 04:52:09 +00:00
ETWErrorAction now uses message source and severity
This commit is contained in:
@@ -135,9 +135,9 @@ static void ETWErrorAction( ULONG error_code, const char* message, int length )
|
|||||||
{
|
{
|
||||||
#ifdef TRACY_HAS_CALLSTACK
|
#ifdef TRACY_HAS_CALLSTACK
|
||||||
tracy::InitCallstackCritical();
|
tracy::InitCallstackCritical();
|
||||||
tracy::Profiler::MessageColor( message, length, Color_Red4, 60 );
|
tracy::Profiler::MessageColor( MessageSourceType::Tracy, MessageSeverity::Error, message, length, Color_Red4, 60 );
|
||||||
#else
|
#else
|
||||||
tracy::Profiler::MessageColor( message, length, Color_Red4, 0 );
|
tracy::Profiler::MessageColor( MessageSourceType::Tracy, MessageSeverity::Error, message, length, Color_Red4, 0 );
|
||||||
#endif
|
#endif
|
||||||
#ifdef __cpp_exceptions
|
#ifdef __cpp_exceptions
|
||||||
// TODO: should we throw an exception?
|
// TODO: should we throw an exception?
|
||||||
|
|||||||
Reference in New Issue
Block a user