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

Function __Pyx_RefNannyImportAPI

eval/CIPO_evaluation/pycocotools/_mask.c:10579–10591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10577/* Refnanny */
10578#if CYTHON_REFNANNY
10579static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
10580 PyObject *m = NULL, *p = NULL;
10581 void *r = NULL;
10582 m = PyImport_ImportModule(modname);
10583 if (!m) goto end;
10584 p = PyObject_GetAttrString(m, "RefNannyAPI");
10585 if (!p) goto end;
10586 r = PyLong_AsVoidPtr(p);
10587end:
10588 Py_XDECREF(p);
10589 Py_XDECREF(m);
10590 return (__Pyx_RefNannyAPIStruct *)r;
10591}
10592#endif
10593
10594/* PyObjectGetAttrStr */

Callers 1

_mask.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected