We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4036736 commit 9f6723cCopy full SHA for 9f6723c
attribute.h
@@ -16,5 +16,6 @@
16
#define attr_cold __attribute__ ((cold))
17
#define attr_nonnull __attribute__ ((nonnull))
18
#define assert_size(type, size) _Static_assert(sizeof(type) == size, "sizeof(" #type ") != " #size)
19
+#define assert_enum(name, value) _Static_assert((name) == (value), "enum value for " #name " != " #value)
20
21
#endif
0 commit comments