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

Function __Pyx_CyFunction_get_name

eval/CIPO_evaluation/pycocotools/_mask.c:12377–12391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12375 return 0;
12376}
12377static PyObject *
12378__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *context)
12379{
12380 if (unlikely(op->func_name == NULL)) {
12381#if PY_MAJOR_VERSION >= 3
12382 op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name);
12383#else
12384 op->func_name = PyString_InternFromString(op->func.m_ml->ml_name);
12385#endif
12386 if (unlikely(op->func_name == NULL))
12387 return NULL;
12388 }
12389 Py_INCREF(op->func_name);
12390 return op->func_name;
12391}
12392static int
12393__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context)
12394{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected