24#include <pybind11/pybind11.h>
27namespace py = pybind11;
30using fct_sig = std::function<void(py::module &)>;
56#define Register_pymod(placeholdername) \
57 void pymod_##placeholdername(py::module &m); \
58 void (*pymod_ptr_##placeholdername)(py::module & m) = pymod_##placeholdername; \
59 PyBindStaticInit pymod_class_obj_##placeholdername(pymod_ptr_##placeholdername); \
60 void pymod_##placeholdername(py::module &m)
std::function< void(py::module &)> fct_sig
alias to pybind11 namespace
void register_pybind_init_func(fct_sig)
Register a python module init function to be ran on init.
Utility struct to register python modules through static init.
PyBindStaticInit(fct_sig t)
Constructor to register the python init function using static init.