I have following function :
typedef struct tagT{
int a ;
int b ;
}Point;
int lib_a_f_5(Point *out_t)
{
out_t->a = 20;
out_t->b = 30;
return 0;
}
How should I direct the SWIG to generate the correct code for ruby (or lua)? When putting following statement to the interface file :
%apply SWIGTYPE Point* {Point *out_t};
I got a warning :
liba.i:7: Warning(453): Can't apply (Point *OUTPUT). No typemaps are defined.
Did i need to write a typemap? How should I do it?