How to configure swig to map size_t as ulong instead of uint (c#) in 64 bit platforms
The problem is that swig is mapping size_t variables as uint in c# this is correct in 32 bit, but I need to create the wrapper for the 64 bit version too. I need help with the configuration of the interface to use ulong instead of uint for size_t on 64 bit platforms. The interface is really simple I just added the header files directly. There is no need to linux support since the project is only for windows and the compiler is Visual Studio 2010.
Any help will 开发者_如何学JAVAbe greatly apreciated.
%apply
is sort of like a #define. I've been using it to convert int64_t to long long.
%apply ulong {size_t}
精彩评论