Adjust FOR_ENUM_ITEMS to account for ENUM_LAST_ITEM being inclusive now.

develop
Alexander Gavrilov 2012-01-21 18:50:44 +04:00
parent 2449b80010
commit b0cda1526e
2 changed files with 2 additions and 2 deletions

@ -235,7 +235,7 @@ namespace df
#define ENUM_NEXT_ITEM(enum,val) \
(DFHack::next_enum_item_<df::enum,ENUM_FIRST_ITEM(enum),df::enums::enum::is_valid>(val))
#define FOR_ENUM_ITEMS(enum,iter) \
for(df::enum iter = ENUM_FIRST_ITEM(enum); iter < ENUM_LAST_ITEM(enum); iter = df::enum(1+int(iter)))
for(df::enum iter = ENUM_FIRST_ITEM(enum); iter <= ENUM_LAST_ITEM(enum); iter = df::enum(1+int(iter)))
namespace df {
#define DF_KNOWN_GLOBALS \

@ -1 +1 @@
Subproject commit f6d09c95153150d7d1f00592336012af5e6e02ad
Subproject commit 0b23a6e28b72f8383647b317635d9b75a69529e0