From 933cfb877f43b25045ae129adff3144fd79ee3a1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 16 Jan 2013 18:06:33 +0300 Subject: Add macro for for and iterators. --- src/localconsts.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/localconsts.h') 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 -- cgit v1.2.3-70-g09d2