src/cx/common.h

changeset 1364
556e4e7608b1
parent 1301
f81d8b4f40c4
--- a/src/cx/common.h	Wed Sep 03 23:10:36 2025 +0200
+++ b/src/cx/common.h	Sat Sep 06 11:57:17 2025 +0200
@@ -131,6 +131,11 @@
 #endif
 
 /**
+ * Inform the compiler that falling through a switch case is intentional.
+ */
+#define cx_attr_fallthrough __attribute__((__fallthrough__))
+
+/**
  * All pointer arguments must be non-NULL.
  */
 #define cx_attr_nonnull __attribute__((__nonnull__))

mercurial