Add note about static_assert being a keyword in C23

kalman-mex
Sébastien Villemot 2023-09-22 13:35:21 +02:00
parent 4f1e5e1bc2
commit f4bcecc0d2
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@
# define int64_T long long
# define uint64_T unsigned long long
#endif
/* NB: the following #ifdef can be removed when we upgrade to C23, since the
latter has static_assert as a keyword */
#ifdef __cplusplus
static_assert(sizeof(int64_T) == 8, "The int64_T type is buggy");
static_assert(sizeof(uint64_T) == 8, "The uint64_T type is buggy");