mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-09 10:39:03 +08:00
Improve Error() shim.
This commit is contained in:
parent
c5627090f7
commit
2f2e51520a
@ -1,4 +1,4 @@
|
|||||||
//===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ========//
|
//===== Copyright <EFBFBD> 1996-2005, Valve Corporation, All rights reserved. ========//
|
||||||
//
|
//
|
||||||
// Purpose:
|
// Purpose:
|
||||||
//
|
//
|
||||||
@ -252,7 +252,7 @@ inline void Error( const tchar* pMsg, ... )
|
|||||||
va_start(params, pMsg);
|
va_start(params, pMsg);
|
||||||
V_vsnprintf(szBuffer, sizeof(szBuffer), pMsg, params);
|
V_vsnprintf(szBuffer, sizeof(szBuffer), pMsg, params);
|
||||||
va_end(params);
|
va_end(params);
|
||||||
LoggingSystem_LogDirect(LOG_GENERAL, LS_ERROR, szBuffer);
|
Plat_FatalErrorFunc( "%s", szBuffer );
|
||||||
}
|
}
|
||||||
|
|
||||||
// @TODO: these callstack spew functions are currently disabled in the new logging system. Need to add support for these if desired.
|
// @TODO: these callstack spew functions are currently disabled in the new logging system. Need to add support for these if desired.
|
||||||
|
@ -1129,6 +1129,8 @@ PLATFORM_INTERFACE void Plat_ExitProcess( int nCode );
|
|||||||
|
|
||||||
PLATFORM_INTERFACE bool Plat_ShouldCollectMiniDumpsForFatalErrors();
|
PLATFORM_INTERFACE bool Plat_ShouldCollectMiniDumpsForFatalErrors();
|
||||||
|
|
||||||
|
PLATFORM_INTERFACE void Plat_FatalErrorFunc( const tchar* pMsg, ... ) FMTFUNCTION( 1, 2 );
|
||||||
|
|
||||||
// b/w compatibility
|
// b/w compatibility
|
||||||
#define Sys_FloatTime Plat_FloatTime
|
#define Sys_FloatTime Plat_FloatTime
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user