diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2020-09-29 06:51:02 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2023-07-28 09:48:17 +0000 |
| commit | 6c16f339224a4736f4ed57d15bb3e5f968a635ab (patch) | |
| tree | ab13afea4b6f9acfb4a139a3125f265c90bc9d80 /include/engine/list.h | |
Initial independent commit
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 |
