For some reason, this code confuses interrogate.
#include <pybind11/pybind11.h>
namespace py = pybind11;
/d/Code/Cpp/ImGuiIntegration/Variant_6/src/p3imgui.h:28:14: error: syntax error, unexpected '=', expecting '{'
namespace py = pybind11;
^
interrogate failed to parse file: 'p3imgui.h'
rdb
2
Evidently interrogate doesn’t support namespace aliases. It’s the first time I’ve seen this syntax too.
Well, until I just added it. I just published panda3d-interrogate 0.9.0 on PyPI with support for namespace aliases, so it should work now.
1 Like
For Panda3D version 1.10.16, this option is suitable.
#ifndef CPPPARSER
#include <pybind11/pybind11.h>
namespace py = pybind11;
#endif