Commit 51e0e77
Removed #define for static_assert in C23.
1) assert.h
- Adding another conditional check for C language revisions being
less than or equal to C17 before defining the static_assert macro.
- C23 introduced static_assert as a builtin keyword and no longer
requires <assert.h> inclusion in order to use it. Furthemore, it
deprecates the _Static_assert builtin we were defining it to.1 parent a1ca20b commit 51e0e77
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| |||
0 commit comments