summaryrefslogtreecommitdiffstats
path: root/Include/cpython/pyerrors.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython/pyerrors.h')
-rw-r--r--Include/cpython/pyerrors.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/cpython/pyerrors.h b/Include/cpython/pyerrors.h
index f8480fb..ab2e740 100644
--- a/Include/cpython/pyerrors.h
+++ b/Include/cpython/pyerrors.h
@@ -178,6 +178,12 @@ PyAPI_FUNC(void) _PyErr_WriteUnraisableMsg(
const char *err_msg,
PyObject *obj);
+PyAPI_FUNC(void) _Py_NO_RETURN _Py_FatalErrorFunc(
+ const char *func,
+ const char *message);
+
+#define Py_FatalError(message) _Py_FatalErrorFunc(__func__, message)
+
#ifdef __cplusplus
}
#endif