aboutsummaryrefslogtreecommitdiffstats
path: root/vppinfra
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-11-01 15:16:30 +0100
committerDave Barach <openvpp@barachs.net>2016-11-01 16:19:13 +0000
commit3b906b0d9b93a892831ce4d54d1d7ec3956ce2b4 (patch)
treef1314662dced3e94524e3d5aa203fe8b02cbe84a /vppinfra
parenta0bc391daf1ded0c0d512cade822675d2bd32a36 (diff)
vppinfra: add STATIC_ASSERT macro
Change-Id: Icc4e74ae1627c5b97746ed64955a3dc089e3998f Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vppinfra')
-rw-r--r--vppinfra/vppinfra/error_bootstrap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vppinfra/vppinfra/error_bootstrap.h b/vppinfra/vppinfra/error_bootstrap.h
index 3fa0a18e..ad600621 100644
--- a/vppinfra/vppinfra/error_bootstrap.h
+++ b/vppinfra/vppinfra/error_bootstrap.h
@@ -79,6 +79,8 @@ do { \
} \
} while (0)
+#define STATIC_ASSERT(truth,...) _Static_assert(truth, __VA_ARGS__)
+
/* Assert without allocating memory. */
#define ASSERT_AND_PANIC(truth) \
do { \