MFC r280273;

Permit multiple arguments for the nonnull attribute.

This is very useful for non-trivial functions and doesn't
affect existing uses.
This commit is contained in:
pfg 2015-03-24 17:37:31 +00:00
parent 109b378db6
commit f5cf31bac5

View File

@ -347,9 +347,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)