diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-20 21:41:28 -0800 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-20 21:41:28 -0800 |
commit | 9697add8b75b96662c8d39477e58d5841c4b9cba (patch) | |
tree | aa431feeeb3815d4bdaeacbfa58b0ab3aa192dae | |
parent | 77e9a8bb42285c118a8a0d51fa166d838cc9f473 (diff) |
Adding __debugbreak() for MSVC debug mode.
-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); } |