|
Preprocessor macros. More...
Files | |
file | preprocessorUtils.h |
Macros | |
#define | TF_NUM_ARGS(...) |
Count the number of arguments. | |
#define | TF_PP_TUPLE_SIZE(tuple) |
Count the number of elements in a preprocessor tuple. | |
#define | TF_PP_TUPLE_TO_LIST(tuple) |
Convert a preprocessor tuple to a preprocessor list. | |
#define | TF_PP_TUPLE_TO_SEQ(tuple) |
Convert a preprocessor tuple to a preprocessor sequence. | |
#define | TF_MAKE_PP_ARRAY(...) |
Create a preprocessor array. | |
#define | TF_MAKE_PP_LIST(...) |
Create a preprocessor list. | |
#define | TF_MAKE_PP_SEQ(...) |
Create a preprocessor sequence. | |
#define | TF_ARG_1(_1, ...) |
Macros that expand to a specific argument. | |
#define | TF_PP_EAT_PARENS(...) |
Return the arguments as is except if the first argument starts with a matched parenthesis then remove those parentheses. | |
#define | TF_PP_IS_TUPLE(arg) |
Exapnds to 1 if the argument is a tuple, and 0 otherwise. | |
Preprocessor macros.
#define TF_ARG_1 | ( | _1, | |
... | |||
) |
Macros that expand to a specific argument.
Definition at line 156 of file preprocessorUtils.h.
#define TF_MAKE_PP_ARRAY | ( | ... | ) |
Create a preprocessor array.
Definition at line 138 of file preprocessorUtils.h.
#define TF_MAKE_PP_LIST | ( | ... | ) |
Create a preprocessor list.
Definition at line 144 of file preprocessorUtils.h.
#define TF_MAKE_PP_SEQ | ( | ... | ) |
Create a preprocessor sequence.
Definition at line 150 of file preprocessorUtils.h.
#define TF_NUM_ARGS | ( | ... | ) |
Count the number of arguments.
The underlying macro argument counting trick in the non-Windows implementation originates from a posting on comp.std.c by Laurent Deniau.
Definition at line 71 of file preprocessorUtils.h.
#define TF_PP_EAT_PARENS | ( | ... | ) |
Return the arguments as is except if the first argument starts with a matched parenthesis then remove those parentheses.
Definition at line 335 of file preprocessorUtilsLite.h.
#define TF_PP_IS_TUPLE | ( | arg | ) |
Exapnds to 1 if the argument is a tuple, and 0 otherwise.
Definition at line 398 of file preprocessorUtilsLite.h.
#define TF_PP_TUPLE_SIZE | ( | tuple | ) |
Count the number of elements in a preprocessor tuple.
Definition at line 114 of file preprocessorUtils.h.
#define TF_PP_TUPLE_TO_LIST | ( | tuple | ) |
Convert a preprocessor tuple to a preprocessor list.
Definition at line 120 of file preprocessorUtils.h.
#define TF_PP_TUPLE_TO_SEQ | ( | tuple | ) |
Convert a preprocessor tuple to a preprocessor sequence.
Definition at line 129 of file preprocessorUtils.h.