void Msg(const char *pMsgFormat, ...) { va_list args; va_start(args, pMsgFormat); _SpewMessage(SPEW_MESSAGE, pMsgFormat, args); va_end(args); }
void Error(const char *pMsgFormat, ...) { va_list args; va_start(args, pMsgFormat); _SpewMessage(SPEW_ERROR, pMsgFormat, args); va_end(args); }
void DevWarning(const char *pMsgFormat, ...) { va_list args; va_start(args, pMsgFormat); _SpewMessage(SPEW_WARNING, pMsgFormat, args); va_end(args); }
void DevLog(const char *pMsgFormat, ...) { va_list args; va_start(args, pMsgFormat); _SpewMessage(SPEW_LOG, pMsgFormat, args); va_end(args); }
SpewRetval_t _SpewMessage(const char *pMsgFormat, ...) { va_list args; va_start(args, pMsgFormat); SpewRetval_t ret = _SpewMessage(s_SpewType, pMsgFormat, args); va_end(args); return ret; }
DBG_INTERFACE SpewRetval_t ColorSpewMessage( SpewType_t type, const Color *pColor, const tchar* pMsgFormat, ... ) { va_list args; va_start( args, pMsgFormat ); SpewRetval_t ret = _SpewMessage( type, "", 0, pColor, pMsgFormat, args ); va_end(args); return ret; }
void Msg( char const* pMsgFormat, ... ) { //#ifdef _DEBUG va_list args; va_start( args, pMsgFormat ); _SpewMessage( SPEW_MESSAGE, pMsgFormat, args ); va_end(args); //#endif }
void Warning( char const *pMsgFormat, ... ) { #ifdef _DEBUG va_list args; va_start( args, pMsgFormat ); _SpewMessage( SPEW_WARNING, pMsgFormat, args ); va_end(args); #endif }
void ConDColorMsg( const Color& clr, const tchar* pMsgFormat, ... ) { if( !IsSpewActive( GROUP_CONSOLE, 2 ) ) return; va_list args; va_start( args, pMsgFormat ); _SpewMessage( SPEW_MESSAGE, s_pConsole, 2, &clr, pMsgFormat, args ); va_end(args); }
void DWarning( char const *pGroupName, int level, char const *pMsgFormat, ... ) { if( !IsSpewActive( pGroupName, level ) ) return; va_list args; va_start( args, pMsgFormat ); _SpewMessage( SPEW_WARNING, pMsgFormat, args ); va_end(args); }
void DevMsg(const char *pMsgFormat, ...) { if (!IsSpewActive("developer", 1)) return; va_list args; va_start(args, pMsgFormat); _SpewMessage(SPEW_MESSAGE, pMsgFormat, args); va_end(args); }
void DevLog(int level, const char *pMsgFormat, ...) { if (!IsSpewActive("developer", level)) return; va_list args; va_start(args, pMsgFormat); _SpewMessage(SPEW_LOG, pMsgFormat, args); va_end(args); }
void DevWarning( int level, char const *pMsgFormat, ... ) { if( !IsSpewActive( "developer", level ) ) return; va_list args; va_start( args, pMsgFormat ); _SpewMessage( SPEW_WARNING, pMsgFormat, args ); va_end(args); }
void DLog(const char *pGroupName, int level, const char *pMsgFormat, ...) { if (!IsSpewActive(pGroupName, level)) return; va_list args; va_start(args, pMsgFormat); _SpewMessage(SPEW_LOG, pMsgFormat, args); va_end(args); }
void NetLog( int level, const tchar *pMsgFormat, ... ) { if( !IsSpewActive( GROUP_NETWORK, level ) ) return; va_list args; va_start( args, pMsgFormat ); _SpewMessage( SPEW_LOG, s_pNetwork, level, &s_DefaultOutputColor, pMsgFormat, args ); va_end(args); }
void ConDLog( const tchar *pMsgFormat, ... ) { if( !IsSpewActive( GROUP_CONSOLE, 2 ) ) return; va_list args; va_start( args, pMsgFormat ); _SpewMessage( SPEW_LOG, s_pConsole, 2, &s_DefaultOutputColor, pMsgFormat, args ); va_end(args); }
void ConWarning( int level, const tchar *pMsgFormat, ... ) { if( !IsSpewActive( GROUP_CONSOLE, level ) ) return; va_list args; va_start( args, pMsgFormat ); _SpewMessage( SPEW_WARNING, s_pConsole, level, &s_DefaultOutputColor, pMsgFormat, args ); va_end(args); }
void DevLog( const tchar *pMsgFormat, ... ) { if( !IsSpewActive( GROUP_DEVELOPER, 1 ) ) return; va_list args; va_start( args, pMsgFormat ); _SpewMessage( SPEW_LOG, s_pDeveloper, 1, &s_DefaultOutputColor, pMsgFormat, args ); va_end(args); }
void DevWarning( int level, const tchar *pMsgFormat, ... ) { if( !IsSpewActive( GROUP_DEVELOPER, level ) ) return; va_list args; va_start( args, pMsgFormat ); _SpewMessage( SPEW_WARNING, s_pDeveloper, level, &s_DefaultOutputColor, pMsgFormat, args ); va_end(args); }
void DWarning( const tchar *pGroupName, int level, const tchar *pMsgFormat, ... ) { if( !IsSpewActive( pGroupName, level ) ) return; va_list args; va_start( args, pMsgFormat ); _SpewMessage( SPEW_WARNING, pGroupName, level, &s_DefaultOutputColor, pMsgFormat, args ); va_end(args); }
SpewRetval_t _DSpewMessage(const char *pGroupName, int level, const char *pMsgFormat, ...) { if (!IsSpewActive(pGroupName, level)) return SPEW_CONTINUE; va_list args; va_start(args, pMsgFormat); SpewRetval_t ret = _SpewMessage(s_SpewType, pMsgFormat, args); va_end(args); return ret; }
void _ExitOnFatalAssert( const tchar* pFile, int line ) { _SpewMessage( _T("Fatal assert failed: %s, line %d. Application exiting.\n"), pFile, line ); // only write out minidumps if we're not in the debugger if ( !Plat_IsInDebugSession() ) { WriteMiniDump(); } DevMsg( 1, _T("_ExitOnFatalAssert\n") ); exit( EXIT_FAILURE ); }
FORCEINLINE SpewRetval_t _SpewMessage( SpewType_t spewType, const tchar* pMsgFormat, va_list args ) { return _SpewMessage( spewType, "", 0, &s_DefaultOutputColor, pMsgFormat, args ); }