Old commit.

This commit is contained in:
Steve Checkoway
2006-03-20 06:53:17 +00:00
parent bb1b56aed4
commit 8597aa1bd6
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -15,6 +15,12 @@ void RageException::SetCleanupHandler( void (*pHandler)(const RString &sError) )
g_CleanupHandler = pHandler;
}
void RageException::CallCleanupHandler( const RString &sError )
{
if( g_CleanupHandler )
g_CleanupHandler( sError );
}
/* This is no longer actually implemented by throwing an exception, but it acts
* the same way to code in practice. */
void RageException::Throw( const char *sFmt, ... )
+1
View File
@@ -7,6 +7,7 @@ namespace RageException
{
void NORETURN Throw(const char *fmt, ...);
void SetCleanupHandler( void (*pHandler)(const RString &sError) );
void CallCleanupHandler( const RString &sError );
};
#endif