Permit multiple arguments for the nonnull attribute.
This is very useful for non-trivial functions and doesn't affect existing uses. MFC after: 5 days
This commit is contained in:
parent
93ad9da2c4
commit
d7efe7e99e
@ -356,9 +356,9 @@
|
||||
#endif
|
||||
|
||||
#if __GNUC_PREREQ__(3, 3)
|
||||
#define __nonnull(x) __attribute__((__nonnull__(x)))
|
||||
#define __nonnull(...) __attribute__((__nonnull__(__VA_ARGS__)))
|
||||
#else
|
||||
#define __nonnull(x)
|
||||
#define __nonnull(...)
|
||||
#endif
|
||||
|
||||
#if __GNUC_PREREQ__(3, 4)
|
||||
|
Loading…
x
Reference in New Issue
Block a user