blob: 5d3f80b989239af30f0be3bf5a038e2fbb5f0c3b (
plain)
1
2
3
4
5
6
7
8
9
10
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
|