const char* pFmtString /* = nullptr */,
...)
{
- if (!enabled) return false;
-
SetTextColor(stderr, TEXT_CYAN, TEXT_NORMAL);
fprintf(stderr, "%s(%d): ", pFileName, lineNum);
OutputDebugStringA("\n");
}
- if (KNOB_ENABLE_ASSERT_DIALOGS)
+ if (enabled && KNOB_ENABLE_ASSERT_DIALOGS)
{
int retval = sprintf_s(
&msgBuf[offset],
}
else
{
- return IsDebuggerPresent() || !chkDebugger;
+ return (IsDebuggerPresent() || !chkDebugger) && enabled;
}
#endif // _WIN32
- return true;
+ return enabled;
}
#endif // SWR_ENABLE_ASSERTS