don't DebugBreak() when not being debugged
This commit is contained in:
@@ -38,7 +38,8 @@ void RageException::Throw(const char *fmt, ...)
|
||||
}
|
||||
|
||||
#if defined(_WINDOWS) && defined(DEBUG)
|
||||
DebugBreak();
|
||||
if( IsDebuggerPresent() )
|
||||
DebugBreak();
|
||||
#endif
|
||||
|
||||
HandleException( error );
|
||||
|
||||
Reference in New Issue
Block a user