MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / find_module_state_by_def

Function find_module_state_by_def

asyncpg/protocol/record/recordobj.c:70–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68static struct PyModuleDef _recordmodule;
69
70static inline record_module_state *
71find_module_state_by_def(PyTypeObject *type)
72{
73 PyObject *mod = PyType_GetModuleByDef(type, &_recordmodule);
74 if (mod == NULL)
75 return NULL;
76 return get_module_state(mod);
77}
78
79static inline record_freelist_state *
80get_freelist_state(record_module_state *state)

Callers 3

record_deallocFunction · 0.85
record_richcompareFunction · 0.85
record_iterFunction · 0.85

Calls 2

PyType_GetModuleByDefFunction · 0.85
get_module_stateFunction · 0.85

Tested by

no test coverage detected