summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaria Matejka <mq@jmq.cz>2020-04-27 22:33:10 +0200
committerMaria Matejka <mq@ucw.cz>2020-05-01 15:18:48 +0200
commitbf9486bf20ee16af71e338ee690fc36805d98fe5 (patch)
treecac78e380324d53297c39a09cbf5b567f6ac6a3d /lib
parent8029ae527edde4d47a51b55efdbdea546296c5ef (diff)
Non-null function argument declaration
Diffstat (limited to 'lib')
-rw-r--r--lib/birdlib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index 4adc42cd..caa26b94 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -72,6 +72,7 @@ static inline int u64_cmp(u64 i1, u64 i2)
#define NORET __attribute__((noreturn))
#define UNUSED __attribute__((unused))
#define PACKED __attribute__((packed))
+#define NONNULL(...) __attribute__((nonnull((__VA_ARGS__))))
#ifndef HAVE_THREAD_LOCAL
#define _Thread_local