(def: *mut PyModuleDef, spec: *mut PyObject)
| 122 | #[inline] |
| 123 | #[cfg(Py_3_5)] |
| 124 | pub unsafe fn PyModule_FromDefAndSpec(def: *mut PyModuleDef, spec: *mut PyObject) -> *mut PyObject { |
| 125 | PyModule_FromDefAndSpec2( |
| 126 | def, |
| 127 | spec, |
| 128 | if cfg!(Py_LIMITED_API) { |
| 129 | PYTHON_ABI_VERSION |
| 130 | } else { |
| 131 | PYTHON_API_VERSION |
| 132 | }, |
| 133 | ) |
| 134 | } |
| 135 | |
| 136 | #[cfg(all(not(Py_LIMITED_API), not(Py_3_12)))] |
| 137 | #[cfg_attr(windows, link(name = "pythonXY"))] |
nothing calls this directly
no test coverage detected