I am writing a C++ application that needs load a Python module, and calls functions in that module. The application needs to pass to the python function a C++ claseses as arguments. I managed to call python code from the C++ code, but I only manage to pass "primative" types as arguments.
I create wrappers/interfaces using SWIG, but I failed to find how to convert my C++ class from the application to PyObject* in order to pass it as argument to the python functions.
Do you know where I can find information about how to perform the casting from C++ to PyObject*?