4 #define FOREACH_ARRAY(arr, start, end, cond, body) \
7 for (int i = start; i < end; ++i) \
9 const noref entity it = arr[i]; \
15 #define FOREACH_LIST(list, next, cond, body) \
19 for (entity it = list##_first; it; (it = it.next, ++i)) \
26 #define FOREACH(list, cond, body) FOREACH_LIST(list, enemy, cond, body)