diff options
-rw-r--r-- | Doc/c-api/intro.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst index 6323180..1500610 100644 --- a/Doc/c-api/intro.rst +++ b/Doc/c-api/intro.rst @@ -149,6 +149,13 @@ complete listing. Like ``getenv(s)``, but returns *NULL* if :option:`-E` was passed on the command line (i.e. if ``Py_IgnoreEnvironmentFlag`` is set). +.. c:macro:: Py_UNUSED(arg) + + Use this for unused arguments in a function definition to silence compiler + warnings, e.g. ``PyObject* func(PyObject *Py_UNUSED(ignored))``. + + .. versionadded:: 3.4 + .. _api-objects: |