Skip to content
New issue

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

Incorrect function pointer arguments within argument #31

Closed
dmlary opened this issue Sep 7, 2014 · 0 comments
Closed

Incorrect function pointer arguments within argument #31

dmlary opened this issue Sep 7, 2014 · 0 comments

Comments

@dmlary
Copy link
Contributor

dmlary commented Sep 7, 2014

Given the following code:

int cvStartLoop(int (*pt2Func)(int argc, char *argv[]), int argc, char* argv[]);

ffi-swig-generator outputs the following, invalid, ruby code:

attach_function :cvStartLoop, :cvStartLoop, [ callback([ :int, a().p.char ], :int), :int, :pointer ], :pointer

Note the a().p.char as the second argument within the callback.

ffi-swig-generator should output:

attach_function :cvStartLoop, :cvStartLoop, [ callback([:int, :pointer], :int), :int, :pointer ], :pointer
@dmlary dmlary closed this as completed in ce2b9c5 Sep 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant