aboutsummaryrefslogtreecommitdiffstats
path: root/vppinfra
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-12-05 14:16:38 +0100
committerDave Barach <openvpp@barachs.net>2016-12-07 17:42:07 +0000
commitd171d48edc1672564db8bb920586b8ea220df14c (patch)
treed9b202cf3f8087ca1d2ec3c604f35fe42e5ba102 /vppinfra
parent38bcb56e99774c209e5f61604a4c22839c097e04 (diff)
l2fib: add mac aging support
Change-Id: Ib617ae0f76320d596cc6c4b384da76c91d701a24 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vppinfra')
-rw-r--r--vppinfra/vppinfra/error_bootstrap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vppinfra/vppinfra/error_bootstrap.h b/vppinfra/vppinfra/error_bootstrap.h
index b03ec88049a..3416c2f9033 100644
--- a/vppinfra/vppinfra/error_bootstrap.h
+++ b/vppinfra/vppinfra/error_bootstrap.h
@@ -85,6 +85,9 @@ do { \
#define STATIC_ASSERT(truth,...) _Static_assert(truth, __VA_ARGS__)
#endif
+#define STATIC_ASSERT_SIZEOF(d, s) \
+ STATIC_ASSERT (sizeof (d) == s, "Size of " #d " must be " # s " bytes")
+
/* Assert without allocating memory. */
#define ASSERT_AND_PANIC(truth) \
do { \