diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-08 19:31:52 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-10-08 19:31:52 (GMT) |
commit | e2bd2a718602bf6d6d607fc9a0b7574a18874847 (patch) | |
tree | 6c5a51a532610fb6717267f2de9661b80405c6e7 /Include/pyerrors.h | |
parent | 0ddbf4795f40d2d3386dc56ffa264b50a015f6c9 (diff) | |
download | cpython-e2bd2a718602bf6d6d607fc9a0b7574a18874847.zip cpython-e2bd2a718602bf6d6d607fc9a0b7574a18874847.tar.gz cpython-e2bd2a718602bf6d6d607fc9a0b7574a18874847.tar.bz2 |
Issue #21715: Extracted shared complicated code in the _io module to new
_PyErr_ChainExceptions() function.
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r-- | Include/pyerrors.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index e44fb5f..02f65d6 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -123,7 +123,9 @@ PyAPI_FUNC(void) PyException_SetCause(PyObject *, PyObject *); /* Context manipulation (PEP 3134) */ PyAPI_FUNC(PyObject *) PyException_GetContext(PyObject *); PyAPI_FUNC(void) PyException_SetContext(PyObject *, PyObject *); - +#ifndef Py_LIMITED_API +PyAPI_FUNC(void) _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *); +#endif /* */ |