4 ms·
Finally, no more `#define true 1`.
by c0balt 3y ago
Finally, no more `#define true 1`.
- Alifatisk 3y agoYou can just include stdbool.h Works since C99
- Gibbon1 3y agoAlways irked me they created an include for just that instead of sticking it in stdint.h
- DerekL 3y agoProbably because some code already defines “bool”, “true”, and “false”, so adding those to an existing header would break it.
- c0balt 3y agoI know, in my university tasks however we were not allowed to include additional files, like stdbool.h. it has become a habit afterwards.