diff options
Diffstat (limited to 'include/engine/list.h')
| -rw-r--r-- | include/engine/list.h | 11 |
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 |
