aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/cdefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/sys/cdefs.h b/sys/include/sys/cdefs.h
index 9518dcb..ef6537d 100644
--- a/sys/include/sys/cdefs.h
+++ b/sys/include/sys/cdefs.h
@@ -99,6 +99,9 @@
/* Suppress `variable set but not used' warnings */
#define __USE(x) ((void)(x))
+/* A cleaner wrapper over _Static_assert() */
+#define __STATIC_ASSERT _Static_assert
+
/* Computes 2^x i.e 2 to the power of 'x' */
#define __POW2(x) (1ULL << x)