HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by c0balt | Hacker News Reader
Full thread
c0balt
·
Finally, no more `#define true 1`.
View on HN
Alifatisk
·
You can just include stdbool.h
Works since C99
Gibbon1
·
Always irked me they created an include for just that instead of sticking it in stdint.h
DerekL
·
Probably because some code already defines “bool”, “true”, and “false”, so adding those to an existing header would break it.
c0balt
·
I know, in my university tasks however we were not allowed to include additional files, like stdbool.h. it has become a habit afterwards.
Reply on news.ycombinator.com