XTE _ EACH ()
Defined in header <xte/preproc/each.hpp> Expands a given function-like macro for every argument passed.
Definition
#eachSeparates expanded expressions with commas.#define XTE_EACH (_func ,... )/* ... */
#delim
Separates expanded expressions with the provided delimeter.#define XTE_EACH_DELIM (_func ,_delim ,... )/* ... */
If no callback is passed, does not wrap arguments in parentheses.
Example
Preprocessor output:#define M (x )x ##0 XTE_EACH_DELIM (M , +,1 ,2 ,3 )
[View in Compiler Explorer]10 +20 +30