MCPcopy Create free account
hub / github.com/PyO3/pyo3 / PyModule_Create

Function PyModule_Create

pyo3-ffi/src/modsupport.rs:92–101  ·  view source on GitHub ↗
(module: *mut PyModuleDef)

Source from the content-addressed store, hash-verified

90
91#[inline]
92pub unsafe fn PyModule_Create(module: *mut PyModuleDef) -> *mut PyObject {
93 PyModule_Create2(
94 module,
95 if cfg!(Py_LIMITED_API) {
96 PYTHON_ABI_VERSION
97 } else {
98 PYTHON_API_VERSION
99 },
100 )
101}
102
103extern_libpython! {
104

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected