mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::ctx: Assert ctx doesn't finish with uncaught exceptions.
This commit is contained in:
parent
6fbd29b1ed
commit
3bc716e0f5
1 changed files with 4 additions and 2 deletions
|
@ -112,14 +112,16 @@ noexcept try
|
||||||
|
|
||||||
// Call the user's function.
|
// Call the user's function.
|
||||||
func();
|
func();
|
||||||
|
|
||||||
|
assert(!std::uncaught_exceptions());
|
||||||
}
|
}
|
||||||
catch(const ircd::ctx::interrupted &)
|
catch(const ircd::ctx::interrupted &)
|
||||||
{
|
{
|
||||||
|
assert(!std::uncaught_exceptions());
|
||||||
}
|
}
|
||||||
catch(const ircd::ctx::terminated &)
|
catch(const ircd::ctx::terminated &)
|
||||||
{
|
{
|
||||||
|
assert(!std::uncaught_exceptions());
|
||||||
}
|
}
|
||||||
catch(const std::exception &e)
|
catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue