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

Function __Pyx_PyObject_CallOneArg

eval/CIPO_evaluation/pycocotools/_mask.c:11107–11123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11105 return result;
11106}
11107static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
11108#if CYTHON_FAST_PYCALL
11109 if (PyFunction_Check(func)) {
11110 return __Pyx_PyFunction_FastCall(func, &arg, 1);
11111 }
11112#endif
11113 if (likely(PyCFunction_Check(func))) {
11114 if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
11115 return __Pyx_PyObject_CallMethO(func, arg);
11116#if CYTHON_FAST_PYCCALL
11117 } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) {
11118 return __Pyx_PyCFunction_FastCall(func, &arg, 1);
11119#endif
11120 }
11121 }
11122 return __Pyx__PyObject_CallOneArg(func, arg);
11123}
11124#else
11125static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
11126 PyObject *result;

Calls 4

__Pyx_PyObject_CallMethOFunction · 0.85
__Pyx_PyObject_CallFunction · 0.85

Tested by

no test coverage detected