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:
parent
331d0a955d
commit
fb6a4fc6ac
1 changed files with 5 additions and 1 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue