summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-09-30 19:16:27 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-09-30 19:16:27 (GMT)
commit0676a406bf9435a59eaca1a54fa582b0b6b79b9f (patch)
tree8e742ce5dc38872dfadfac8b6c673ebacb1c3403 /Include
parent63860e5407e9ac1251e0698fb2d208a1da54bd3c (diff)
downloadcpython-0676a406bf9435a59eaca1a54fa582b0b6b79b9f.zip
cpython-0676a406bf9435a59eaca1a54fa582b0b6b79b9f.tar.gz
cpython-0676a406bf9435a59eaca1a54fa582b0b6b79b9f.tar.bz2
Issue #18711: Add a new `PyErr_FormatV` function, similar to `PyErr_Format` but accepting a `va_list` argument.
Diffstat (limited to 'Include')
-rw-r--r--Include/pyerrors.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index e44fb5f..24bc2b7 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(