mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd::json: Add assertion for stack unwind.
This commit is contained in:
parent
bc5160307f
commit
875c0bce05
1 changed files with 6 additions and 0 deletions
|
@ -1147,7 +1147,10 @@ ircd::json::stack::object::~object()
|
|||
noexcept
|
||||
{
|
||||
if(!s)
|
||||
{
|
||||
assert(!m.s);
|
||||
return; // std::move()'ed away
|
||||
}
|
||||
|
||||
const unwind _{[this]
|
||||
{
|
||||
|
@ -1352,7 +1355,10 @@ ircd::json::stack::array::~array()
|
|||
noexcept
|
||||
{
|
||||
if(!s)
|
||||
{
|
||||
assert(!m.s);
|
||||
return; // std::move()'ed away
|
||||
}
|
||||
|
||||
const unwind _{[this]
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue