From f4bcecc0d2104985faf1bfe87cf7e256454422e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Fri, 22 Sep 2023 13:35:21 +0200 Subject: [PATCH] Add note about static_assert being a keyword in C23 --- mex/sources/dynmex.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mex/sources/dynmex.h b/mex/sources/dynmex.h index a4a635e83..3fb46aab5 100644 --- a/mex/sources/dynmex.h +++ b/mex/sources/dynmex.h @@ -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");