XTE_BOOL()

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

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


Definition

#define XTE_BOOL(_x) XTE_COMPL(XTE_NOT(_x))


Example

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