summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-10-14 02:33:04 -0400
committerkwolekr <kwolekr@minetest.net>2015-10-14 02:33:30 -0400
commit6f4d6cb5741d10e10dacc78e264e421bf6a297cf (patch)
tree9c0198e4935986f486274324175c78c5c5865694 /src/debug.h
parent4236792b87a68819c56f3b6f8bd44f48058dec57 (diff)
downloadminetest-6f4d6cb5741d10e10dacc78e264e421bf6a297cf.tar.gz
minetest-6f4d6cb5741d10e10dacc78e264e421bf6a297cf.tar.bz2
minetest-6f4d6cb5741d10e10dacc78e264e421bf6a297cf.zip
Always use errorstream for DEBUG_EXCEPTION_HANDLER
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/debug.h b/src/debug.h
index 94b268edd..e8d35ba70 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -126,16 +126,16 @@ private:
#if CATCH_UNHANDLED_EXCEPTIONS == 1
#define BEGIN_DEBUG_EXCEPTION_HANDLER try {
- #define END_DEBUG_EXCEPTION_HANDLER(logstream) \
- } catch (std::exception &e) { \
- logstream << "An unhandled exception occurred: " \
- << e.what() << std::endl; \
- FATAL_ERROR(e.what()); \
+ #define END_DEBUG_EXCEPTION_HANDLER \
+ } catch (std::exception &e) { \
+ errorstream << "An unhandled exception occurred: " \
+ << e.what() << std::endl; \
+ FATAL_ERROR(e.what()); \
}
#else
// Dummy ones
#define BEGIN_DEBUG_EXCEPTION_HANDLER
- #define END_DEBUG_EXCEPTION_HANDLER(logstream)
+ #define END_DEBUG_EXCEPTION_HANDLER
#endif
#endif // DEBUG_HEADER