У меня есть c ++ ah файл, подобный этому
class myClass { private: int a; public: myClass(){} void foo(){} };
Как должен выглядеть файл интерфейса SWIG?Это правда?
%module a %{ #include "a.h" %}
Нет, либо:
%module a %{ // This adds the include to the generated wrapper. #include "a.h" %} %include "a.h" // This *processes* the include and makes wrappers.
или:
%module a %inline %{ // This includes the code in braces in the wrapper *and* processes it. #include "a.h" %}