XTE_IF ()
Defined in header <xte/preproc/if.hpp> Called in three parts (condition, then, else). If the first argument expands to
1 , expands to the second argument, otherwise expands to the third argument.Definition
#if#define XTE_IF (_x )XTE_IIF (XTE_BOOL (_x ))
#iif
#define XTE_IIF (_b )/* ??? */
Example
Preprocessor output:XTE_IF (1 )('a' )('b' )XTE_IF (0 )('a' )('b' )
[View in Compiler Explorer]'a' 'b'