From 04c5470a5907901bd572f87682d2a70ea96cce9f Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 2 Aug 2019 13:41:05 +1000 Subject: [PATCH] preprocessor: add the empty, defer, obstruct, and expand macros --- preprocessor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/preprocessor.py b/preprocessor.py index a0a862db..646f701b 100755 --- a/preprocessor.py +++ b/preprocessor.py @@ -161,6 +161,10 @@ if __name__ == '__main__': // Pair token concatenation, transforming into a namespace and type. #define NAMESPACE_LIST(NS,KLASS) NS::KLASS, +#define EMPTY() +#define DEFER(X) X EMPTY() +#define OBSTRUCT(...) __VA_ARGS__ DEFER(EMPTY)() +#define EXPAND(...) __VA_ARGS__ #define APPEND_COMMA(X) X,