开发者

How to configure swig to map size_t as ulong instead of uint (c#) in 64 bit platforms

开发者 https://www.devze.com 2023-03-08 16:36 出处:网络
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 int

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}
0

精彩评论

暂无评论...
验证码 换一张
取 消