forked from boostorg/beast
Put back BEAST_CATCH_UNHANDLED_EXCEPTIONS macro, but disabled by default
This commit is contained in:
1 parent
da925ee5cc
commit
8b1b6050e7
3 files changed
+17
-1
No files matched your search
@@ -314,6 +314,7 @@ void ProtectedCall::call (Call& c)
|
||||
if (handler == nullptr)
|
||||
handler = &defaultHandler;
|
||||
|
||||
#if BEAST_CATCH_UNHANDLED_EXCEPTIONS
|
||||
try
|
||||
{
|
||||
c ();
|
||||
@@ -324,6 +325,11 @@ void ProtectedCall::call (Call& c)
|
||||
|
||||
handler->onException (e);
|
||||
}
|
||||
|
||||
#else
|
||||
c ();
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef BEAST_CATCH_UNHANDLED_EXCEPTIONS
|
||||
#define BEAST_CATCH_UNHANDLED_EXCEPTIONS 1
|
||||
#define BEAST_CATCH_UNHANDLED_EXCEPTIONS 0
|
||||
#endif
|
||||
|
||||
#if BEAST_DEBUG && ! defined (BEAST_CHECK_MEMORY_LEAKS)
|
||||
|
||||
Reference in new issue
Block a user