diff options
author | Larry Hastings <larry@hastings.org> | 2014-01-04 19:09:09 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2014-01-04 19:09:09 (GMT) |
commit | 3cceb384861eeae1f164568a9ea30534fdf2c87c (patch) | |
tree | e46cf8291ab3f31367845b16b169ea8feed5c0a0 /Include | |
parent | 583a93943c0f090ac2699d7feb33e72bfed7323e (diff) | |
download | cpython-3cceb384861eeae1f164568a9ea30534fdf2c87c.zip cpython-3cceb384861eeae1f164568a9ea30534fdf2c87c.tar.gz cpython-3cceb384861eeae1f164568a9ea30534fdf2c87c.tar.bz2 |
Issue #19976: Argument Clinic METH_NOARGS functions now always
take two parameters.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pymacro.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pymacro.h b/Include/pymacro.h index 793f67d..7997c55 100644 --- a/Include/pymacro.h +++ b/Include/pymacro.h @@ -69,4 +69,10 @@ /* Check if pointer "p" is aligned to "a"-bytes boundary. */ #define _Py_IS_ALIGNED(p, a) (!((Py_uintptr_t)(p) & (Py_uintptr_t)((a) - 1))) +#ifdef __GNUC__ +#define Py_UNUSED(name) _unused_ ## name __attribute__((unused)) +#else +#define Py_UNUSED(name) _unused_ ## name +#endif + #endif /* Py_PYMACRO_H */ |