blob: f0dbac76e070d7b5156089a508c7ef624ce82fd9 [file] [log] [blame]
Ying Wang05436632013-04-05 16:01:00 -07001/* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
2 that the values passed as arguments n, ..., m must be non-NULL pointers.
3 n = 1 stands for the first argument, n = 2 for the second argument etc. */
4#ifndef _GL_ARG_NONNULL
5# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
6# define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
7# else
8# define _GL_ARG_NONNULL(params)
9# endif
10#endif