diff options
Diffstat (limited to 'includes/Exceptions.h')
-rw-r--r-- | includes/Exceptions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/Exceptions.h b/includes/Exceptions.h index d296eb1..47bd1f5 100644 --- a/includes/Exceptions.h +++ b/includes/Exceptions.h @@ -5,6 +5,8 @@ #ifndef _MSC_VER #include <cxxabi.h> +#else +#include <intrin.h> #endif #include <BString.h> @@ -90,6 +92,9 @@ 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(); +#endif throw GeneralException(msg, details); } |