mirror of
https://github.com/matrix-construct/construct
synced 2024-10-03 22:28:52 +02:00
ircd::ctx: Tweak exception_handler.
This commit is contained in:
parent
719a965d9f
commit
ab25346534
1 changed files with 3 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue