Blame gl/tests/arg-nonnull.h

Packit aea12f
/* A C macro for declaring that specific arguments must not be NULL.
Packit aea12f
   Copyright (C) 2009-2019 Free Software Foundation, Inc.
Packit aea12f
Packit aea12f
   This program is free software: you can redistribute it and/or modify it
Packit aea12f
   under the terms of the GNU General Public License as published
Packit aea12f
   by the Free Software Foundation; either version 3 of the License, or
Packit aea12f
   (at your option) any later version.
Packit aea12f
Packit aea12f
   This program is distributed in the hope that it will be useful,
Packit aea12f
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit aea12f
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit aea12f
   General Public License for more details.
Packit aea12f
Packit aea12f
   You should have received a copy of the GNU General Public License
Packit aea12f
   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
Packit aea12f
Packit aea12f
/* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
Packit aea12f
   that the values passed as arguments n, ..., m must be non-NULL pointers.
Packit aea12f
   n = 1 stands for the first argument, n = 2 for the second argument etc.  */
Packit aea12f
#ifndef _GL_ARG_NONNULL
Packit aea12f
# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
Packit aea12f
#  define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
Packit aea12f
# else
Packit aea12f
#  define _GL_ARG_NONNULL(params)
Packit aea12f
# endif
Packit aea12f
#endif