diff options
-rw-r--r-- | includes/Exceptions.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/Exceptions.h b/includes/Exceptions.h index f68239f..1c66968 100644 --- a/includes/Exceptions.h +++ b/includes/Exceptions.h @@ -99,9 +99,11 @@ static inline void * realloc(void * previous, size_t size) { static inline void AssertHelperInner(const String & msg, const char * details = NULL) throw (GeneralException) { #if defined(_MSC_VER) && defined(_DEBUG) - __debugbreak(); + if (IsDebuggerPresent()) + __debugbreak(); + else #endif - throw GeneralException(msg, details); + throw GeneralException(msg, details); } static inline void AssertHelper(const String & msg, const char * fmt, ...) printfwarning(2, 3); |