44 static PythonReadyFunc *first =
nullptr;
51 static PythonInitFunc *first =
nullptr;
56 python_ready(pybind11::args args)
58 for (
auto ptr = firstReadyFunc(); ptr; ptr = ptr->next)
63 systemc_pybind(pybind11::module &m_internal)
65 pybind11::module
m = m_internal.def_submodule(
"systemc");
66 m.def(
"python_ready", &python_ready);
67 for (
auto ptr = firstInitFunc(); ptr; ptr = ptr->next)
76 firstReadyFunc() =
this;
81 firstInitFunc() =
this;