summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-16 18:06:33 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-16 18:06:33 +0300
commit933cfb877f43b25045ae129adff3144fd79ee3a1 (patch)
treecc222de03145f9b6eda4eb7402034b069b1492c8 /src/localconsts.h
parent70d4f24f38a4036f84c1f71803173199e95ad675 (diff)
downloadManaVerse-933cfb877f43b25045ae129adff3144fd79ee3a1.tar.gz
ManaVerse-933cfb877f43b25045ae129adff3144fd79ee3a1.tar.bz2
ManaVerse-933cfb877f43b25045ae129adff3144fd79ee3a1.tar.xz
ManaVerse-933cfb877f43b25045ae129adff3144fd79ee3a1.zip
Add macro for for and iterators.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h3
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