From 9697add8b75b96662c8d39477e58d5841c4b9cba Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 20 Dec 2013 21:41:28 -0800 Subject: Adding __debugbreak() for MSVC debug mode. --- includes/Exceptions.h | 5 +++++ 1 file changed, 5 insertions(+) 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 +#else +#include #endif #include @@ -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); } -- cgit v1.2.3