From 8596f5307ce55ff362d9d22f0b1310f341b0b1e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 23 Feb 2019 11:30:36 +0100 Subject: Something. --- linked_list.inc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linked_list.inc.h') diff --git a/linked_list.inc.h b/linked_list.inc.h index e20c6339..11c7844c 100644 --- a/linked_list.inc.h +++ b/linked_list.inc.h @@ -2,6 +2,9 @@ // #error "Set TYPE before including this file" // #else +#include +#include "err.h" + // INIT_F ( LLIST(TYPE) ) { template llist::llist () { @@ -169,8 +172,10 @@ int llist::reset () { * Manual looping rather than itterators since we destroyed the * loop variable. */ + fprintf(stderr, _RED "head = %p, tail = %p\n" _RESET, this->head, this->tail); while (link != this->tail) { next = link->after; + fprintf(stderr, _RED "link = %p\n" _RESET, link); // FFREE(LINK(TYPE), link); delete link; link = next; -- cgit v1.2.3