Sprinkled profiler macros.

This commit is contained in:
Branimir Karadžić
2015-11-14 17:09:58 -08:00
parent 55df818f06
commit cbbba6e5f6
3 changed files with 14 additions and 4 deletions

View File

@@ -378,7 +378,11 @@ BX_PRAGMA_DIAGNOSTIC_POP();
rmtError err = rmt_CreateGlobalInstance(&s_rmt);
BX_WARN(RMT_ERROR_NONE != err, "Remotery failed to create global instance.");
if (RMT_ERROR_NONE != err)
if (RMT_ERROR_NONE == err)
{
rmt_SetCurrentThreadName("Main");
}
else
{
s_rmt = NULL;
}