|
From: kosmirror <kos...@us...> - 2025-09-19 17:42:05
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "A pseudo Operating System for the Dreamcast.".
The branch, master has been updated
via 7346fd704ba489b7d9cf1234282b85957e7625dc (commit)
from 3348accdbc8a4869ef6eeaf7799067d84af64466 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7346fd704ba489b7d9cf1234282b85957e7625dc
Author: Paul Cercueil <pa...@cr...>
Date: Fri Sep 19 15:55:36 2025 +0200
Add C11's static_assert() to <assert.h>
C11 adds the _Static_assert keyword, and a static_assert macro in
<assert.h>.
Add the static_assert() macro to our <assert.h> copy.
Signed-off-by: Paul Cercueil <pa...@cr...>
-----------------------------------------------------------------------
Summary of changes:
include/assert.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/assert.h b/include/assert.h
index fc7e78ec..a818cdc7 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -40,6 +40,10 @@ __BEGIN_DECLS
error message. */
/** \cond */
#define _assert(e) assert(e)
+
+#if __STDC_VERSION__ >= 201112L && !defined __cplusplus
+#define static_assert _Static_assert
+#endif
/** \endcond */
#ifdef NDEBUG
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|