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

Function __Pyx_CyFunction_get_doc

eval/CIPO_evaluation/pycocotools/_mask.c:12345–12364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12343/* CythonFunctionShared */
12344 #include <structmember.h>
12345static PyObject *
12346__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure)
12347{
12348 if (unlikely(op->func_doc == NULL)) {
12349 if (op->func.m_ml->ml_doc) {
12350#if PY_MAJOR_VERSION >= 3
12351 op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc);
12352#else
12353 op->func_doc = PyString_FromString(op->func.m_ml->ml_doc);
12354#endif
12355 if (unlikely(op->func_doc == NULL))
12356 return NULL;
12357 } else {
12358 Py_INCREF(Py_None);
12359 return Py_None;
12360 }
12361 }
12362 Py_INCREF(op->func_doc);
12363 return op->func_doc;
12364}
12365static int
12366__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, CYTHON_UNUSED void *context)
12367{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected