4 #define FOREACH_ARRAY(arr, start, end, cond, body) do { \
5 for (int i = start; i < end; ++i) { \
6 const noref entity it = arr[i]; \
11 #define FOREACH_LIST(list, next, cond, body) do { \
13 for (entity it = list##_first; it; (it = it.next, ++i)) { \
18 #define FOREACH(list, cond, body) FOREACH_LIST(list, enemy, cond, body)