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

Function get_module_state

asyncpg/protocol/record/recordobj.c:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42} record_module_state;
43
44static inline record_module_state *
45get_module_state(PyObject *module)
46{
47 void *state = PyModule_GetState(module);
48 if (state == NULL) {
49 PyErr_SetString(PyExc_SystemError, "failed to get record module state");
50 return NULL;
51 }
52 return (record_module_state *)state;
53}
54
55static inline record_module_state *
56get_module_state_from_type(PyTypeObject *type)

Callers 4

find_module_state_by_defFunction · 0.85
record_module_execFunction · 0.85
record_module_traverseFunction · 0.85
record_module_clearFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected