| 37 | static struct PyModuleDef moduledef = {PyModuleDef_HEAD_INIT, "testext", "", -1, methods}; |
| 38 | |
| 39 | PyMODINIT_FUNC |
| 40 | PyInit_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 |
| 49 | PyMODINIT_FUNC |
| 50 | inittestext(void) |
nothing calls this directly
no outgoing calls
no test coverage detected