summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_pyerrors.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-04 23:54:55 (GMT)
committerGitHub <noreply@github.com>2023-09-04 23:54:55 (GMT)
commit676593859e75d4c3543d143092b77f55389006e4 (patch)
tree9b88c52954c170674e1ad0bae3018009489942a4 /Include/internal/pycore_pyerrors.h
parent6304d983a0656c1841769bf36e5b42819508d21c (diff)
downloadcpython-676593859e75d4c3543d143092b77f55389006e4.zip
cpython-676593859e75d4c3543d143092b77f55389006e4.tar.gz
cpython-676593859e75d4c3543d143092b77f55389006e4.tar.bz2
gh-106320: Remove private _PyErr_WriteUnraisableMsg() (#108863)
Move the private _PyErr_WriteUnraisableMsg() functions to the internal C API (pycore_pyerrors.h). Move write_unraisable_exc() from _testcapi to _testinternalcapi.
Diffstat (limited to 'Include/internal/pycore_pyerrors.h')
-rw-r--r--Include/internal/pycore_pyerrors.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h
index 0f16fb8..184eb35 100644
--- a/Include/internal/pycore_pyerrors.h
+++ b/Include/internal/pycore_pyerrors.h
@@ -170,6 +170,11 @@ Py_DEPRECATED(3.12) extern void _PyErr_ChainExceptions(PyObject *, PyObject *, P
// Export for '_zoneinfo' shared extension
PyAPI_FUNC(void) _PyErr_ChainExceptions1(PyObject *);
+// Export for '_lsprof' shared extension
+PyAPI_FUNC(void) _PyErr_WriteUnraisableMsg(
+ const char *err_msg,
+ PyObject *obj);
+
#ifdef __cplusplus
}
#endif