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

Array as function argument #385

Open
davispuh opened this issue Nov 8, 2014 · 0 comments
Open

Array as function argument #385

davispuh opened this issue Nov 8, 2014 · 0 comments

Comments

@davispuh
Copy link
Contributor

davispuh commented Nov 8, 2014

If I've function or callback defined as

void fn(int a, int list[10], int b);

it could be used as

attach_function :fn, :fn, [ :int, [:int, 10], :int ], :void

but looks like this currently isn't possible.

ffi/types.rb:70:in `find_type': unable to resolve type '[:int, 10]' (TypeError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants