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

Allow rendering glue code as extern C .cpp file #212

Open
keynmol opened this issue Jun 21, 2023 · 0 comments
Open

Allow rendering glue code as extern C .cpp file #212

keynmol opened this issue Jun 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@keynmol
Copy link
Contributor

keynmol commented Jun 21, 2023

If the header you are including is actually a C++ header, then you need to have your glue code rendered as C++ code with extern C, otherwise you get compilation errors.

Also in this mode we need to make sure not to render _Bool - instead render C++ native bool

I think at this point it's better to just add GlueC and GlueCPP to --lang parameter, and just have --scala and --c as shortcuts

@keynmol keynmol added the enhancement New feature or request label Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant