When a compiler with C23 or higher is detected, builtin bool, true,
and false are used to conform the C23 standard.
Details
Details
- Reviewers
imp - Group Reviewers
Contributor Reviews (src) - Commits
- rG5656d0f7453e: stdbool.h: Update for C23
rGf441a225c4eb: stdbool.h: Update for C23
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| include/stdbool.h | ||
|---|---|---|
| 30 |
This is a version test macro that tells the current implmented C standard version of a header file.
| |
| 48 |
I wanted to make sure that those are keywords in C23 and c++, but now it seems redundant. I'll remove them. | |
Comment Actions
OK. This looks ready to go then. Sorry for my slowness in responding
| include/stdbool.h | ||
|---|---|---|
| 30 |
Right. That makes sense now that I know it's the 'new standard' to do it like that. | |