summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-20 21:41:28 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-20 21:41:28 -0800
commit9697add8b75b96662c8d39477e58d5841c4b9cba (patch)
treeaa431feeeb3815d4bdaeacbfa58b0ab3aa192dae
parent77e9a8bb42285c118a8a0d51fa166d838cc9f473 (diff)
Adding __debugbreak() for MSVC debug mode.
-rw-r--r--includes/Exceptions.h5
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);
}