summaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/list.h b/src/list.h
index 3cf18f1547..2bec8c9e73 100644
--- a/src/list.h
+++ b/src/list.h
@@ -110,6 +110,9 @@
} \
} while(false)
+#define LIST_JUST_US(name,item) \
+ (!(item)->name##_prev && !(item)->name##_next) \
+
#define LIST_FOREACH(name,i,head) \
for ((i) = (head); (i); (i) = (i)->name##_next)