0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-11 06:28:55 +02:00

ircd: Add misc assertions.

This commit is contained in:
Jason Volk 2018-09-18 21:24:19 -07:00
parent 7bb8e9d5b6
commit 3b960d2576
2 changed files with 2 additions and 0 deletions

View file

@ -105,6 +105,7 @@ noexcept
this->~list();
std::swap(head, o.head);
std::swap(tail, o.tail);
assert(!o.head && !o.tail);
return *this;
}

View file

@ -1959,6 +1959,7 @@ noexcept
// Must have a fully associated request/tag which has committed some
// data to the wire to enter this routine.
assert(tag.committed());
assert(!tag.canceled());
assert(request.tag == &tag);
assert(tag.request == &request);