diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-16 18:06:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-16 18:06:33 +0300 |
commit | 933cfb877f43b25045ae129adff3144fd79ee3a1 (patch) | |
tree | cc222de03145f9b6eda4eb7402034b069b1492c8 /src/localconsts.h | |
parent | 70d4f24f38a4036f84c1f71803173199e95ad675 (diff) | |
download | mv-933cfb877f43b25045ae129adff3144fd79ee3a1.tar.gz mv-933cfb877f43b25045ae129adff3144fd79ee3a1.tar.bz2 mv-933cfb877f43b25045ae129adff3144fd79ee3a1.tar.xz mv-933cfb877f43b25045ae129adff3144fd79ee3a1.zip |
Add macro for for and iterators.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index c73700824..7c6ac524b 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -56,6 +56,9 @@ #define gnu_printf printf #endif +#define FOR_EACH(type, iter, array) for (type iter = array.begin(), \ + iter##_end = array.end(); iter != iter##_end; ++ iter) + //#define DEBUG_CONFIG 1 //#define DEBUG_BIND_TEXTURE 1 //#define DISABLE_RESOURCE_CACHING 1 |