aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-08-22 12:15:44 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-08-22 12:22:51 -0400
commit7d014933cea167043b0347e8d49f0fa36762c45a (patch)
tree1c56047fd5f4eba010ca322095fbfa066015b607 /src
parent84fd89b8cfb1c4f4bedd94d8f50ab402f878267a (diff)
downloadkutter-7d014933cea167043b0347e8d49f0fa36762c45a.tar.gz
kutter-7d014933cea167043b0347e8d49f0fa36762c45a.tar.xz
kutter-7d014933cea167043b0347e8d49f0fa36762c45a.zip
command: Allow count parameter of DECL_ENUMERATION_RANGE() to be an expression
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/command.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.h b/src/command.h
index 1edf7c5a..892d1aad 100644
--- a/src/command.h
+++ b/src/command.h
@@ -25,8 +25,8 @@
#define DECL_ENUMERATION(ENUM, NAME, VALUE) \
DECL_CTR_INT("_DECL_ENUMERATION " ENUM " " NAME, 1, CTR_INT(VALUE))
#define DECL_ENUMERATION_RANGE(ENUM, NAME, VALUE, COUNT) \
- DECL_CTR_INT("_DECL_ENUMERATION_RANGE " ENUM " " NAME \
- " " __stringify(COUNT), 1, CTR_INT(VALUE))
+ DECL_CTR_INT("_DECL_ENUMERATION_RANGE " ENUM " " NAME, \
+ 2, CTR_INT(VALUE), CTR_INT(COUNT))
// Send an output message (and declare a static message type for it)
#define output(FMT, args...) \