24.3 Data Type
Some compilers allow use of the boolean type, bool
, as well as
associated values true
and false
, as specified by the
C99 C Language Standard. This type and these values may be used by all MPLAB XC
compilers when in compatibility mode (see note), as shown in the table below.
As indicated by the Standard, the <stdbool.h>
header must be
included for this feature to work as expected when it is used with MPLAB XC
compilers.
IAR Compatibility Mode | ||
---|---|---|
Type | XC-DSC | XC32 |
bool |
support | support |
Note: Not all C99 features have been adopted by all Microchip MPLAB XC compilers.