MCPcopy Create free account
hub / github.com/bloomberg/pystack / PyInit_testext

Function PyInit_testext

tests/integration/empty_thread_extension/testext.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37static struct PyModuleDef moduledef = {PyModuleDef_HEAD_INIT, "testext", "", -1, methods};
38
39PyMODINIT_FUNC
40PyInit_testext(void)
41{
42 PyObject* mod = PyModule_Create(&moduledef);
43# ifdef Py_GIL_DISABLED
44 PyUnstable_Module_SetGIL(mod, Py_MOD_GIL_NOT_USED);
45# endif
46 return mod;
47}
48#else
49PyMODINIT_FUNC
50inittestext(void)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected