I can't get call-by-reference functions to work in SWIG...
Even when wrapping a trivial example like this:
/* File : trivial.i */
%module trivial
%inline
%{
class test
{
public:
void foo(int *t)
{
*t=42;
}
};
%}
I get a TypeError when trying to use it:
import trivial
I can't get call-by-reference functions to work in SWIG...
Even when wrapping a trivial example like this:
/* File : trivial.i */
%module trivial
%inline
%{
class test
{
public:
void foo(int *t)
{
*t=42;
}
};
%}
I get a TypeError when trying to use it:
import trivial