summaryrefslogtreecommitdiff
path: root/Include/pyerrors.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-09-30 21:16:27 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2014-09-30 21:16:27 +0200
commit0676a406bf9435a59eaca1a54fa582b0b6b79b9f (patch)
tree8e742ce5dc38872dfadfac8b6c673ebacb1c3403 /Include/pyerrors.h
parent63860e5407e9ac1251e0698fb2d208a1da54bd3c (diff)
downloadcpython-git-0676a406bf9435a59eaca1a54fa582b0b6b79b9f.tar.gz
Issue #18711: Add a new `PyErr_FormatV` function, similar to `PyErr_Format` but accepting a `va_list` argument.
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r--Include/pyerrors.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index e44fb5f0eb..24bc2b7a8d 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -242,6 +242,12 @@ PyAPI_FUNC(PyObject *) PyErr_Format(
const char *format, /* ASCII-encoded string */
...
);
+#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
+PyAPI_FUNC(PyObject *) PyErr_FormatV(
+ PyObject *exception,
+ const char *format,
+ va_list vargs);
+#endif
#ifdef MS_WINDOWS
PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilename(