From: mjean2 <mj...@au...> - 2011-04-26 15:57:17
|
Hello, I have a problem wrapping C structures in C#. It seems my typemap isn't applied to struct members. Here is a simpler version of my problem: %module Test %typemap(ctype) void * "void *" %typemap(imtype) void * "IntPtr" %typemap(cstype) void * "IntPtr" %typemap(csin) void * "$csinput" %typemap(in) void * %{ $1 = $input; %} %typemap(out) void * %{ $result = $1; %} %typemap(csout) void * { return $imcall; } %inline %{ struct Toto{ void * pFoo; }; %} The member pFoo is always wrapped as type SWIGTYPE_p_void instead of IntPtr. All other occurrences of void * as in/out function parameters work properly. But all void * struct members don't. I'm sure it as simple thing, but I'm a new SWIG user, I don't understand it all yet :( Thanks! -- View this message in context: http://old.nabble.com/typemap-not-applied-to-struct-member-tp31479693p31479693.html Sent from the swig-user mailing list archive at Nabble.com. |