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

deadlock: Add Plat_NonFatalErrorFunc

This commit is contained in:
GAMMACASE
2025-08-21 22:37:51 +03:00
parent 9f028e73b7
commit 5bbfc0792e

View File

@ -1117,6 +1117,8 @@ PLATFORM_INTERFACE void Plat_ExitProcess( int nCode );
PLATFORM_INTERFACE bool Plat_ShouldCollectMiniDumpsForFatalErrors(); PLATFORM_INTERFACE bool Plat_ShouldCollectMiniDumpsForFatalErrors();
PLATFORM_INTERFACE void Plat_NonFatalErrorFunc( const tchar *pMsg, ... ) FMTFUNCTION( 1, 2 );
#define Plat_FatalError( ... ) do { Log_Error( LOG_GENERAL, ##__VA_ARGS__ ); Plat_ExitProcess( EXIT_FAILURE ); } while( 0 ) #define Plat_FatalError( ... ) do { Log_Error( LOG_GENERAL, ##__VA_ARGS__ ); Plat_ExitProcess( EXIT_FAILURE ); } while( 0 )
#define Plat_FatalErrorFunc #define Plat_FatalErrorFunc