From e2bd2a718602bf6d6d607fc9a0b7574a18874847 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 8 Oct 2014 22:31:52 +0300 Subject: Issue #21715: Extracted shared complicated code in the _io module to new _PyErr_ChainExceptions() function. --- Include/pyerrors.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Include/pyerrors.h') diff --git a/Include/pyerrors.h b/Include/pyerrors.h index e44fb5f0eb..02f65d6603 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 /* */ -- cgit v1.2.1