46 static PythonReadyFunc *first =
nullptr;
53 static PythonInitFunc *first =
nullptr;
58 python_ready(pybind11::args args)
60 for (
auto ptr = firstReadyFunc(); ptr; ptr = ptr->next)
65 systemc_pybind(pybind11::module &m_internal)
67 pybind11::module
m = m_internal.def_submodule(
"systemc");
68 m.def(
"python_ready", &python_ready);
69 for (
auto ptr = firstInitFunc(); ptr; ptr = ptr->next)
78 firstReadyFunc() =
this;
83 firstInitFunc() =
this;
static EmbeddedPyBind embed_("stattest", stattest_init_pybind)