From 2b02810758bf18609ec4ba7f8887b9b1ec8f47a3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 24 Feb 2006 03:09:11 +0000 Subject: [PATCH] cleanup --- stepmania/src/RageException.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/stepmania/src/RageException.cpp b/stepmania/src/RageException.cpp index fc8cf64dce..794497f7a2 100644 --- a/stepmania/src/RageException.cpp +++ b/stepmania/src/RageException.cpp @@ -17,32 +17,32 @@ void RageException::SetCleanupHandler( void (*pHandler)(const RString &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 *fmt, ...) +void RageException::Throw( const char *sFmt, ... ) { va_list va; - va_start(va, fmt); - RString error = vssprintf( fmt, va ); + va_start( va, sFmt ); + RString error = vssprintf( sFmt, va ); va_end(va); RString msg = ssprintf( - "\n" - "//////////////////////////////////////////////////////\n" - "Exception: %s\n" - "//////////////////////////////////////////////////////\n" - "", - error.c_str()); - if(LOG) + "\n" + "//////////////////////////////////////////////////////\n" + "Exception: %s\n" + "//////////////////////////////////////////////////////\n" + "", + error.c_str() ); + if( LOG ) { - LOG->Trace("%s", msg.c_str()); + LOG->Trace( "%s", msg.c_str() ); LOG->Flush(); } else { - printf("%s\n", msg.c_str()); - fflush(stdout); + printf( "%s\n", msg.c_str() ); + fflush( stdout ); } -#if defined(_WINDOWS) && defined(DEBUG) +#if defined(WINDOWS) && defined(DEBUG) if( IsDebuggerPresent() ) DebugBreak(); #endif