mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Always use errorstream for DEBUG_EXCEPTION_HANDLER
This commit is contained in:
parent
4236792b87
commit
6f4d6cb574
7 changed files with 13 additions and 13 deletions
12
src/debug.h
12
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue