From 7d014933cea167043b0347e8d49f0fa36762c45a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 22 Aug 2019 12:15:44 -0400 Subject: command: Allow count parameter of DECL_ENUMERATION_RANGE() to be an expression Signed-off-by: Kevin O'Connor --- src/command.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command.h') 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...) \ -- cgit v1.2.3-70-g09d2