arg-nonnull.h 441 B

12345678910
  1. /* _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