summaryrefslogtreecommitdiff
path: root/include/engine/list.h
blob: 37857f0824f41f13764a4179b805455df17a5650 (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