Bug #2445 ยป 2445.patch
| common/city.h | ||
|---|---|---|
|
/* Iterates over all output types in the game. */
|
||
|
/* Hacked so cpp will compile it without
|
||
|
* error: assigning to 'Output_type_id' (aka 'output_type_id')
|
||
|
* from incompatible type 'int'
|
||
|
* see RM #2445.
|
||
|
*/
|
||
|
#define output_type_iterate(output) \
|
||
|
{ \
|
||
|
Output_type_id output; \
|
||
|
\
|
||
|
for (output = 0; output < O_LAST; output++) {
|
||
|
for (int index = 0; index < (int)O_LAST; index++) {\
|
||
|
output = (Output_type_id) index;
|
||
|
#define output_type_iterate_end \
|
||
|
} \
|
||