0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-04 17:48:35 +02:00

ircd::ctx: Tweak exception_handler.

This commit is contained in:
Jason Volk 2019-07-09 01:26:37 -07:00
parent 719a965d9f
commit ab25346534

View file

@ -780,13 +780,14 @@ noexcept
assert(bool(*this));
#ifdef HAVE_CXXABI_H
__cxxabiv1::__cxa_end_catch();
if(current)
__cxxabiv1::__cxa_end_catch();
#endif
// We don't yet support more levels of exceptions; after ending this
// catch we can't still be in another one. This doesn't apply if we're
// not on any ctx currently.
assert(!current || !std::current_exception());
assert(!current || !std::uncaught_exceptions());
}
//