diff --git a/public/tier0/dbg.h b/public/tier0/dbg.h index 2e2f68f8..5b58e1b8 100644 --- a/public/tier0/dbg.h +++ b/public/tier0/dbg.h @@ -244,7 +244,8 @@ PLATFORM_INTERFACE void Warning( const tchar *pMsg, ... ) FMTFUNCTION( 1, 2 ); PLATFORM_INTERFACE void Warning_SpewCallStack( int iMaxCallStackLength, const tchar *pMsg, ... ) FMTFUNCTION( 2, 3 ); // This is gone in Source2. Provide helper to roughly mimic Source1 behavior -inline void Error( const tchar* pMsg, ... ) FMTFUNCTION( 1, 2 ) +void Error( const tchar* pMsg, ... ) FMTFUNCTION( 1, 2 ); +inline void Error( const tchar* pMsg, ... ) { static char szBuffer[MAX_LOGGING_MESSAGE_LENGTH]; va_list params;