We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I've callback defined as
#define COUNT 10 void (*cl)(int list[COUNT]);
swig produces
<attribute name="decl" value="f(a(COUNT).int)." id="19616" addr="0xbf61b8" />
and it appears
callback([ a(COUNT).int ], :void)
but it probably should be
callback([ [:int, 10] ], :void)
only that's not supported yet, see ffi/ffi#385
The text was updated successfully, but these errors were encountered:
hmm, actually I noticed that I hadn't included file with that #define in .i file. So with that included, swig produces
#define
.i
<attribute name="decl" value="p.f(a(10).int)." id="13790" addr="0xb87770" />
and it appears as
callback([ :pointer ], :void),
which is ok I guess, but I think it would be nice if it could be converted to actual Ruby array, because now I loose it's size.
Sorry, something went wrong.
I'll keep an eye on that other issue, but there's not much we can do if the ffi gem doesn't support array size within the function parameters.
No branches or pull requests
When I've callback defined as
swig produces
and it appears
but it probably should be
only that's not supported yet, see ffi/ffi#385
The text was updated successfully, but these errors were encountered: