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

Function __Pyx__ExceptionReset

eval/CIPO_evaluation/pycocotools/_mask.c:13012–13033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
13015 _PyErr_StackItem *exc_info = tstate->exc_info;
13016 tmp_type = exc_info->exc_type;
13017 tmp_value = exc_info->exc_value;
13018 tmp_tb = exc_info->exc_traceback;
13019 exc_info->exc_type = type;
13020 exc_info->exc_value = value;
13021 exc_info->exc_traceback = tb;
13022 #else
13023 tmp_type = tstate->exc_type;
13024 tmp_value = tstate->exc_value;
13025 tmp_tb = tstate->exc_traceback;
13026 tstate->exc_type = type;
13027 tstate->exc_value = value;
13028 tstate->exc_traceback = tb;
13029 #endif
13030 Py_XDECREF(tmp_type);
13031 Py_XDECREF(tmp_value);
13032 Py_XDECREF(tmp_tb);
13033}
13034#endif
13035
13036/* PyErrExceptionMatches */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected