0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-01 19:22:53 +01:00

ircd::ctx: Bypass the exception_handler assertion if on bare metal.

This commit is contained in:
Jason Volk 2018-04-07 11:08:07 -07:00
parent 331d0a955d
commit fb6a4fc6ac

View file

@ -499,7 +499,11 @@ noexcept
assert(bool(*this)); assert(bool(*this));
//assert(!std::uncaught_exceptions()); //assert(!std::uncaught_exceptions());
__cxa_end_catch(); __cxa_end_catch();
assert(!std::current_exception());
// 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());
} }
// //