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 dynamically sized things in extern splices #83

Open
ollef opened this issue Dec 27, 2017 · 0 comments
Open

Add support for dynamically sized things in extern splices #83

ollef opened this issue Dec 27, 2017 · 0 comments

Comments

@ollef
Copy link
Owner

ollef commented Dec 27, 2017

Currently, we can't safely splice in dynamically sized things in extern C blocks ((C| $test |)) where the size of test is only known at runtime. We should add support for this, possibly by making the ReturnDirection machinery aware of extern blocks.

We might need some new syntax for splices that need to return by out param. Maybe something like $(out = stuff), where out is a C identifier.

We should also add static checks and errors for unsafe splice uses (e.g. not using the $(out = stuff) syntax when stuff is passed by out param).

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

1 participant