From c8686a727d55d8be8c8db243d8e6f854600567d6 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Fri, 19 Sep 2014 08:21:03 +0200 Subject: [PATCH] Bugcheck::unexpected() only reports the exception in debug builds --- Foundation/src/Bugcheck.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Foundation/src/Bugcheck.cpp b/Foundation/src/Bugcheck.cpp index 375d693fc..bcfa1b24b 100644 --- a/Foundation/src/Bugcheck.cpp +++ b/Foundation/src/Bugcheck.cpp @@ -59,6 +59,7 @@ void Bugcheck::bugcheck(const char* msg, const char* file, int line) void Bugcheck::unexpected(const char* file, int line) { +#ifdef _DEBUG try { std::string msg("Caught exception in destructor: "); @@ -82,7 +83,8 @@ void Bugcheck::unexpected(const char* file, int line) } catch (...) { - } + } +#endif }