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

Add support for binding foreign arrays #470

Merged
merged 2 commits into from Nov 3, 2016
Merged

Add support for binding foreign arrays #470

merged 2 commits into from Nov 3, 2016

Conversation

yallop
Copy link
Owner

@yallop yallop commented Nov 3, 2016

Fixes #469.

This PR adds support for binding accessing global array values via generated stubs. For example, given the C value

char *strings[2] = { "Hello", "world" };

the following OCaml expression yields a pointer to strings that can be used for reading and writing:

F.foreign "strings" (array 2 string)

@yallop yallop merged commit 7bbe0c2 into yallop:master Nov 3, 2016
@yallop yallop deleted the foreign-value-arrays branch November 3, 2016 19:05
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

Successfully merging this pull request may close these issues.

None yet

1 participant