Preprocessor Utilities

Preprocessor macros. More...

Files

file  preprocessorUtils.h
 

Macros

#define TF_NUM_ARGS(...)
 Count the number of arguments. More...
 
#define TF_PP_EAT_PARENS(...)
 Return the arguments as is except if the first argument starts with a matched parenthesis then remove those parentheses. More...
 
#define TF_PP_IS_TUPLE(arg)
 Exapnds to 1 if the argument is a tuple, and 0 otherwise. More...
 
#define TF_PP_TUPLE_SIZE(tuple)
 Count the number of elements in a preprocessor tuple. More...
 
#define TF_PP_TUPLE_TO_LIST(tuple)
 Convert a preprocessor tuple to a preprocessor list. More...
 
#define TF_PP_TUPLE_TO_SEQ(tuple)
 Convert a preprocessor tuple to a preprocessor sequence. More...
 
#define TF_MAKE_PP_ARRAY(...)
 Create a preprocessor array. More...
 
#define TF_MAKE_PP_LIST(...)
 Create a preprocessor list. More...
 
#define TF_MAKE_PP_SEQ(...)
 Create a preprocessor sequence. More...
 
#define TF_ARG_1(_1, ...)
 Macros that expand to a specific argument. More...
 

Detailed Description

Preprocessor macros.

Macro Definition Documentation

◆ TF_ARG_1

#define TF_ARG_1 (   _1,
  ... 
)

Macros that expand to a specific argument.

Definition at line 255 of file preprocessorUtils.h.

◆ TF_MAKE_PP_ARRAY

#define TF_MAKE_PP_ARRAY (   ...)

Create a preprocessor array.

Definition at line 237 of file preprocessorUtils.h.

◆ TF_MAKE_PP_LIST

#define TF_MAKE_PP_LIST (   ...)

Create a preprocessor list.

Definition at line 243 of file preprocessorUtils.h.

◆ TF_MAKE_PP_SEQ

#define TF_MAKE_PP_SEQ (   ...)

Create a preprocessor sequence.

Definition at line 249 of file preprocessorUtils.h.

◆ TF_NUM_ARGS

#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 74 of file preprocessorUtils.h.

◆ TF_PP_EAT_PARENS

#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 128 of file preprocessorUtils.h.

◆ TF_PP_IS_TUPLE

#define TF_PP_IS_TUPLE (   arg)

Exapnds to 1 if the argument is a tuple, and 0 otherwise.

Definition at line 197 of file preprocessorUtils.h.

◆ TF_PP_TUPLE_SIZE

#define TF_PP_TUPLE_SIZE (   tuple)

Count the number of elements in a preprocessor tuple.

Definition at line 213 of file preprocessorUtils.h.

◆ TF_PP_TUPLE_TO_LIST

#define TF_PP_TUPLE_TO_LIST (   tuple)

Convert a preprocessor tuple to a preprocessor list.

Definition at line 219 of file preprocessorUtils.h.

◆ TF_PP_TUPLE_TO_SEQ

#define TF_PP_TUPLE_TO_SEQ (   tuple)

Convert a preprocessor tuple to a preprocessor sequence.

Definition at line 228 of file preprocessorUtils.h.