XIEITE_BOOL()

Defined in header
<xieite/pp/bool.hpp>

Expands to 0 if 0 is passed, otherwise expands to 1.


Definition

#define XIEITE_BOOL(_x) XIEITE_COMPL(XIEITE_NOT(_x))


Example

XIEITE_BOOL(0)
XIEITE_BOOL()
XIEITE_BOOL(abcdef)
Preprocessor output:
0
1
1
[View in Compiler Explorer]