macro-fundamental: add _nonnull_if_nonzero_
Introduced in gcc 15: https://github.com/gcc-mirror/gcc/commit/19fe55c4801de50deee03b333e94d007aae222e3
This commit is contained in:
@@ -112,6 +112,12 @@
|
||||
# define _fallthrough_ __attribute__((__fallthrough__))
|
||||
#endif
|
||||
|
||||
#if __GNUC__ >= 15
|
||||
# define _nonnull_if_nonzero_(p, n) __attribute__((nonnull_if_nonzero(p, n)))
|
||||
#else
|
||||
# define _nonnull_if_nonzero_(p, n)
|
||||
#endif
|
||||
|
||||
#define XSTRINGIFY(x) #x
|
||||
#define STRINGIFY(x) XSTRINGIFY(x)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user