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

ccall #66

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

ccall #66

wants to merge 3 commits into from

Conversation

8tx7K38ej1aBTKWK
Copy link
Contributor

This PR implements the second part of #43, which adds a ccall function to
villian. The detail of ccall is described here: #43 (comment).

I also added a wrapper for libunistring function and moved all char related
functions as a library in lib/char.rkt. In this way, we don't need to link
libunistring statically anymore. It also provides an example for the C API:
unistring.c

The only problem now is the unit test. Because ccall is not a racket
function, we need to let raco test ignore some of the files, but I'm not sure
how to fix this problem.

I'm pretty sure the ccall function work as intended. As an experiement, I
added a super simplified wrapper for SDL on sdl branch:

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.

1 participant