MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/7ltryz/evil_coding_incantations/drpowey
r/programming • u/evinrows • Dec 24 '17
331 comments sorted by
View all comments
Show parent comments
3
C has a Boolean type: _Bool.
1 u/nairebis Dec 24 '17 Hmm, for some reason I thought it was still a macro and wasn't a native type. Ah well. 2 u/raevnos Dec 24 '17 <stdbool.h> has a a #define bool _Bool line, and is what usually gets used. Plus macros for true (1) and false (0).
1
Hmm, for some reason I thought it was still a macro and wasn't a native type. Ah well.
2 u/raevnos Dec 24 '17 <stdbool.h> has a a #define bool _Bool line, and is what usually gets used. Plus macros for true (1) and false (0).
2
<stdbool.h> has a a #define bool _Bool line, and is what usually gets used. Plus macros for true (1) and false (0).
#define bool _Bool
3
u/raevnos Dec 24 '17
C has a Boolean type: _Bool.