From 1bc37d576ce790c1169c5f9996be7bbc8026db2c Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 17 Jun 2012 01:29:13 +0300 Subject: Initially split utility.h to multiple files in util/ --- src/debug.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/debug.h') diff --git a/src/debug.h b/src/debug.h index 8c5714f8c..7a3c60144 100644 --- a/src/debug.h +++ b/src/debug.h @@ -24,10 +24,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include #include -#include "common_irrlicht.h" +#include "irrlichttypes.h" #include "threads.h" #include "gettime.h" -#include "constants.h" #include "exceptions.h" #ifdef _WIN32 @@ -39,6 +38,15 @@ with this program; if not, write to the Free Software Foundation, Inc., #else #endif +// Whether to catch all std::exceptions. +// Assert will be called on such an event. +// In debug mode, leave these for the debugger and don't catch them. +#ifdef NDEBUG + #define CATCH_UNHANDLED_EXCEPTIONS 1 +#else + #define CATCH_UNHANDLED_EXCEPTIONS 0 +#endif + /* Debug output */ -- cgit v1.2.3