From 6c16f339224a4736f4ed57d15bb3e5f968a635ab Mon Sep 17 00:00:00 2001 From: 0scar Date: Tue, 29 Sep 2020 08:51:02 +0200 Subject: Initial independent commit --- include/engine/list.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 include/engine/list.h (limited to 'include/engine/list.h') 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 -- cgit v1.3