Bugcheck::unexpected() only reports the exception in debug builds

This commit is contained in:
Guenter Obiltschnig
2014-09-19 08:21:03 +02:00
parent e500d0f31a
commit c8686a727d

View File

@@ -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: ");
@@ -83,6 +84,7 @@ void Bugcheck::unexpected(const char* file, int line)
catch (...)
{
}
#endif
}