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_WORD(words, cond, body) \
29 string _words = words; \
31 for (string _it; (_it = car(_words)); (_words = cdr(_words), ++i)) \
33 const noref string it = _it; \
39 #define FOREACH(list, cond, body) FOREACH_LIST(list, enemy, cond, body)