Simplify AutoPyBind generated code:
From @bill-hoffman via email:
However, the naming does need a refresh....
I am thinking maybe this:
apb11_<module>_<class>_register() // use this for each class/function that we bind
PYBIND11_EXPORT apb11_<module>_register_types(model) // use this for all of the bindings for a whole module
So we would have something like this for module example:
void PYBIND11_EXPORT apb11_example_register_types(model) {
abp11_example_A_register(model); // register class A pybind11
abp11_example_B_register(model); // register class B pybind11
}
PYBIND11_MODULE(example, model) {
apb11_example_register_types(model)
}