Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Finally, no more `#define true 1`.


You can just include stdbool.h

Works since C99


I know, in my university tasks however we were not allowed to include additional files, like stdbool.h. it has become a habit afterwards.


Always irked me they created an include for just that instead of sticking it in stdint.h


Probably because some code already defines “bool”, “true”, and “false”, so adding those to an existing header would break it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: