MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / __Pyx__ExceptionSave

Function __Pyx__ExceptionSave

eval/CIPO_evaluation/pycocotools/_mask.c:12997–13011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12995/* SaveResetException */
12996 #if CYTHON_FAST_THREAD_STATE
12997static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
12998 #if CYTHON_USE_EXC_INFO_STACK
12999 _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
13000 *type = exc_info->exc_type;
13001 *value = exc_info->exc_value;
13002 *tb = exc_info->exc_traceback;
13003 #else
13004 *type = tstate->exc_type;
13005 *value = tstate->exc_value;
13006 *tb = tstate->exc_traceback;
13007 #endif
13008 Py_XINCREF(*type);
13009 Py_XINCREF(*value);
13010 Py_XINCREF(*tb);
13011}
13012static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
13013 PyObject *tmp_type, *tmp_value, *tmp_tb;
13014 #if CYTHON_USE_EXC_INFO_STACK

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected