summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
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 eee549789..6c52bf0e1 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -195,6 +195,9 @@
#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