summaryrefslogtreecommitdiff
path: root/lib/birdlib.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2021-06-06 17:23:45 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2021-06-06 17:23:45 +0200
commitee9516dbe85b7205c6c8e400780c5a25787d6bff (patch)
tree2f917a48020524dec10d1578016fe943aa33c556 /lib/birdlib.h
parentb174cc0abc0a9d7e84cc6fae46d9e19b714fbcfb (diff)
Lib: Fix static assert macro
Diffstat (limited to 'lib/birdlib.h')
-rw-r--r--lib/birdlib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index 6240c343..431b7c0d 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -74,7 +74,8 @@ static inline int u64_cmp(u64 i1, u64 i2)
#define PACKED __attribute__((packed))
#define NONNULL(...) __attribute__((nonnull((__VA_ARGS__))))
-#define STATIC_ASSERT(...) _Static_assert(__VA_ARGS__)
+#define STATIC_ASSERT(EXP) _Static_assert(EXP, #EXP)
+#define STATIC_ASSERT_MSG(EXP,MSG) _Static_assert(EXP, MSG)
#ifndef HAVE_THREAD_LOCAL
#define _Thread_local