summaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-05-30 12:49:32 +0200
committerDamjan Marion <damarion@cisco.com>2018-06-02 11:50:23 +0200
commitba614d63a8dabaf95f012323c5f9bfba4a23f5cf (patch)
tree8d177ddd31bc0277df74a59b253422abc508b981 /src/vppinfra
parent4bc1796b346efd10f3fb19b176ff089179263a24 (diff)
AVF input node rework
Change-Id: Ib121b24935d5c706cfba6e4b6d321086a38cad91 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/error_bootstrap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vppinfra/error_bootstrap.h b/src/vppinfra/error_bootstrap.h
index 3416c2f9033..248d389d0f2 100644
--- a/src/vppinfra/error_bootstrap.h
+++ b/src/vppinfra/error_bootstrap.h
@@ -88,6 +88,9 @@ do { \
#define STATIC_ASSERT_SIZEOF(d, s) \
STATIC_ASSERT (sizeof (d) == s, "Size of " #d " must be " # s " bytes")
+#define STATIC_ASSERT_OFFSET_OF(s, e, o) \
+ STATIC_ASSERT (STRUCT_OFFSET_OF(s,e) == o, "Offset of " #s "." #e " must be " # o)
+
/* Assert without allocating memory. */
#define ASSERT_AND_PANIC(truth) \
do { \