1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Fix compile error regression in Error shim on GCC/Clang.

This commit is contained in:
Nicholas Hastings
2018-06-30 08:47:48 -04:00
parent 3d5689c064
commit 73261a7bd2

View File

@ -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;