preprocessor: add the empty, defer, obstruct, and expand macros

This commit is contained in:
Danny Robson 2019-08-02 13:41:05 +10:00
parent 0bb092b92f
commit 04c5470a59

View File

@ -161,6 +161,10 @@ if __name__ == '__main__':
// Pair token concatenation, transforming into a namespace and type. // Pair token concatenation, transforming into a namespace and type.
#define NAMESPACE_LIST(NS,KLASS) NS::KLASS, #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, #define APPEND_COMMA(X) X,