diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-06-17 01:29:13 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-17 01:29:13 +0300 |
commit | 1bc37d576ce790c1169c5f9996be7bbc8026db2c (patch) | |
tree | 0a6e0c448a9fa5366609d1ffda7238d78d96f7ce /src/debug.h | |
parent | d159591b9a01eb4385276497ba8c5fa4b30ab7de (diff) | |
download | minetest-1bc37d576ce790c1169c5f9996be7bbc8026db2c.tar.gz minetest-1bc37d576ce790c1169c5f9996be7bbc8026db2c.tar.bz2 minetest-1bc37d576ce790c1169c5f9996be7bbc8026db2c.zip |
Initially split utility.h to multiple files in util/
Diffstat (limited to 'src/debug.h')
-rw-r--r-- | src/debug.h | 12 |
1 files changed, 10 insertions, 2 deletions
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 <jmutex.h> #include <jmutexautolock.h> #include <iostream> -#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 */ |