@@ -51,7 +51,7 @@ void PyErr_BadInternalCall(void) {
51
51
52
52
53
53
PyObject * PyErr_Occurred () {
54
- return UPCALL_CEXT_O ("PyErr_Occurred" , ERROR_MARKER );
54
+ return UPCALL_CEXT_O ("PyErr_Occurred" , ERROR_MARKER );
55
55
}
56
56
57
57
void PyErr_SetString (PyObject * exception , const char * string ) {
@@ -107,11 +107,11 @@ static void _PyErr_GetOrFetchExcInfo(int consume, PyObject **p_type, PyObject **
107
107
}
108
108
109
109
void PyErr_Fetch (PyObject * * p_type , PyObject * * p_value , PyObject * * p_traceback ) {
110
- _PyErr_GetOrFetchExcInfo (1 , p_type , p_value , p_traceback );
110
+ _PyErr_GetOrFetchExcInfo (1 , p_type , p_value , p_traceback );
111
111
}
112
112
113
113
void PyErr_GetExcInfo (PyObject * * p_type , PyObject * * p_value , PyObject * * p_traceback ) {
114
- _PyErr_GetOrFetchExcInfo (0 , p_type , p_value , p_traceback );
114
+ _PyErr_GetOrFetchExcInfo (0 , p_type , p_value , p_traceback );
115
115
Py_XINCREF (* p_type );
116
116
Py_XINCREF (* p_value );
117
117
Py_XINCREF (* p_traceback );
@@ -161,3 +161,7 @@ void PyErr_NormalizeException(PyObject **exc, PyObject **val, PyObject **tb) {
161
161
// TODO (tfel): do we have to?
162
162
return ;
163
163
}
164
+
165
+ void PyErr_SetExcInfo (PyObject * p_type , PyObject * p_value , PyObject * p_traceback ) {
166
+ PyErr_Restore (p_type , p_value , p_traceback );
167
+ }
0 commit comments