From 87d3b9db4ade1aa100ee6f065082cb7e85b8992f Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 25 Mar 2020 19:27:36 +0100 Subject: bpo-39882: Add _Py_FatalErrorFormat() function (GH-19157) --- Include/cpython/pyerrors.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Include/cpython/pyerrors.h') diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h index ab2e74018b..cdd052026c 100644 --- a/Include/cpython/pyerrors.h +++ b/Include/cpython/pyerrors.h @@ -182,6 +182,11 @@ PyAPI_FUNC(void) _Py_NO_RETURN _Py_FatalErrorFunc( const char *func, const char *message); +PyAPI_FUNC(void) _Py_NO_RETURN _Py_FatalErrorFormat( + const char *func, + const char *format, + ...); + #define Py_FatalError(message) _Py_FatalErrorFunc(__func__, message) #ifdef __cplusplus -- cgit v1.2.1