Add assertion.

This commit is contained in:
Sönke Ludwig 2017-09-26 15:42:23 +02:00
parent 60407b783b
commit 8799b7b01e

View file

@ -59,6 +59,7 @@ struct StackDList(T) {
void insertAfter(T* item, T* after)
{
assert(!item.prev && !item.next);
if (!after) insertBack(item);
else {
item.prev = after;