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:
pfg 2015-03-20 01:07:48 +00:00
parent 93ad9da2c4
commit d7efe7e99e

View File

@ -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)