We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
[[fallthrough]]
1 parent dec3658 commit 43889faCopy full SHA for 43889fa
1 file changed
Zend/zend_portability.h
@@ -130,7 +130,9 @@
130
#endif
131
132
/* pseudo fallthrough keyword; */
133
-#if defined(__GNUC__) && __GNUC__ >= 7
+#if __STDC_VERSION__ >= 202311L || defined(__cplusplus)
134
+# define ZEND_FALLTHROUGH [[fallthrough]]
135
+#elif defined(__GNUC__) && __GNUC__ >= 7
136
# define ZEND_FALLTHROUGH __attribute__((__fallthrough__))
137
#else
138
# define ZEND_FALLTHROUGH ((void)0)
0 commit comments