summaryrefslogtreecommitdiff
path: root/include/engine/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/engine/list.h')
-rw-r--r--include/engine/list.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/engine/list.h b/include/engine/list.h
new file mode 100644
index 0000000..5d3f80b
--- /dev/null
+++ b/include/engine/list.h
@@ -0,0 +1,11 @@
+#ifndef ENGINE_LIST_H
+#define ENGINE_LIST_H
+
+#define DEFINE_LLIST(type) \
+struct List_##type { \
+ type value; \
+ struct List_##type* next; \
+ /* Force the user to add `;` for style consistency */\
+} List_##type
+
+#endif