P99

◆ P99_IF_ELSE

#define P99_IF_ELSE (   ...)    P99_IF_EQ_0(P99_IS_EQ_0(__VA_ARGS__))

A preprocessor control structure.

Use this as follows

P99_IF_ELSE(some_expression)(tokens_A)(tokens_B)

This expands to tokens_B if the list expanded to the token 0 and to tokens_A in any other case.

Observe the parenthesis around tokens_A and tokens_B.

Definition at line 167 of file p99_if.h.

P99_IF_ELSE
#define P99_IF_ELSE(...)
A preprocessor control structure.
Definition: p99_if.h:167