Hello. I am trying to embed some Python code in C++ Panda engine. I am using pybind11.
There’s a name conflict:
get_type_handle confilcts with pybind’s funciton with the same name:
So, if pybind’s header gets included after the register_type.h (and it’s eventually does, e.g. in “config_MODULE_NAME.cxx” files), everything breaks.
I am not a C++ expert, so I don’t know solutions other than using a different design and avoiding including these two headers in one file. Maybe there’s an obvious solution that I am missing?