Add assertion.
This commit is contained in:
parent
60407b783b
commit
8799b7b01e
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue