don't DebugBreak() when not being debugged

This commit is contained in:
Glenn Maynard
2005-05-28 07:29:09 +00:00
parent e504164796
commit 6f8fd517ea
+2 -1
View File
@@ -38,7 +38,8 @@ void RageException::Throw(const char *fmt, ...)
}
#if defined(_WINDOWS) && defined(DEBUG)
DebugBreak();
if( IsDebuggerPresent() )
DebugBreak();
#endif
HandleException( error );