summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-01 23:59:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-02 01:42:48 +0300
commit8aa68056aec80c775a3ddb152bea8a90a7097199 (patch)
tree2a131c77e27ea4d5a7a3e3d5102f0bbc12957569 /src/localconsts.h
parent96805601e06e6ed6f7b5aaffc3bbb22dd9e8d58a (diff)
downloadmv-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.gz
mv-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.bz2
mv-8aa68056aec80c775a3ddb152bea8a90a7097199.tar.xz
mv-8aa68056aec80c775a3ddb152bea8a90a7097199.zip
Add actions for switch to next/prev tab in inventory.
Keys not assigned.
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 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)