Paolo Bonzini wrote:
> do you plan on adding 2-argument versions of the macro, such as
> _GL_ARG_NONNULL2?

The macro already supports multiple parameter indices. Example:

extern int scandir (const char *dir, struct dirent ***namelist,
                    int (*filter) (const struct dirent *),
                    int (*cmp) (const struct dirent **, const struct dirent **))
     _GL_ARG_NONNULL ((1, 2, 4));

> With OpenGL identifiers starting with GL it's a tough call anyway,
> especially for preprocessor identifiers (for others OpenGL uses camel
> case).

OpenGL macro names start with GL_. So if we choose the prefix _GL_ we're
not likely to collide.

Bruno


Reply via email to