From 8aa68056aec80c775a3ddb152bea8a90a7097199 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Dec 2014 23:59:31 +0300 Subject: Add actions for switch to next/prev tab in inventory. Keys not assigned. --- 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 549838619..777d0f540 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -85,6 +85,9 @@ #define FOR_EACH(type, iter, array) for (type iter = array.begin(), \ iter##_end = array.end(); iter != iter##_end; ++ iter) +#define FOR_EACHR(type, iter, array) for (type iter = array.rbegin(), \ + iter##_end = array.rend(); iter != iter##_end; ++ iter) + #define FOR_EACHP(type, iter, array) for (type iter = array->begin(), \ iter##_end = array->end(); iter != iter##_end; ++ iter) -- cgit v1.2.3-60-g2f50