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:
Pedro F. Giffuni 2015-03-20 01:07:48 +00:00
parent ec0e626baf
commit f608a55f18

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)