diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-29 19:05:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-29 20:53:56 +0300 |
commit | 864e023e0faeca5aa662023a54af7e4f9797fafa (patch) | |
tree | ae76f85900e16e2c15d82b661077a265ecdd2276 /src/localconsts.h | |
parent | 4c4d59b85e3b89812cede60dea8cf0d0185695ae (diff) | |
download | manaverse-864e023e0faeca5aa662023a54af7e4f9797fafa.tar.gz manaverse-864e023e0faeca5aa662023a54af7e4f9797fafa.tar.bz2 manaverse-864e023e0faeca5aa662023a54af7e4f9797fafa.tar.xz manaverse-864e023e0faeca5aa662023a54af7e4f9797fafa.zip |
Move foreach macroses into separate file.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index bbc5f632d..e6b455cf6 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -301,18 +301,6 @@ #define notfinal -#define FOR_EACH(type, iter, array) for (type iter = array.begin(), \ - iter##_fend = array.end(); iter != iter##_fend; ++ iter) - -#define FOR_EACHR(type, iter, array) for (type iter = array.rbegin(), \ - iter##_fend = array.rend(); iter != iter##_fend; ++ iter) - -#define FOR_EACHP(type, iter, array) for (type iter = array->begin(), \ - iter##_fend = array->end(); iter != iter##_fend; ++ iter) - -#define FOR_EACH_SAFE(type, iter, array) for (type iter = array.begin(); \ - iter != array.end(); ++ iter) - #ifdef ENABLE_CHECKPLUGIN #define A_NONNULLPOINTER __attribute__((nonnullpointer)) #else // ENABLE_CHECKPLUGIN |