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

C wrapper - call a C++ method from C (request for new CPP2C features) #2002

Closed
UnlimitedChild opened this issue Apr 24, 2021 · 2 comments
Closed

Comments

@UnlimitedChild
Copy link

Hi,

I need to generate a C wrapper for each type in C ++, you have support for everything, but not for this type of generation. It would be great if you could adapt such methods to your project.

Here's an example -
WrapperCtoCppx64.zip

@UnlimitedChild UnlimitedChild changed the title C wrapper - call a C++ method from C (request for new features) C wrapper - call a C++ method from C (request for new CPP2C features) Apr 24, 2021
@ghost
Copy link

ghost commented Apr 25, 2021

It isn't trivial at all to do that. I wish there was something like that but you need to know something like clang to parse the C++ and determine how it flattens to a C functionc all. Swig won't do that or wrap C code for C.

@wsfulton
Copy link
Member

See #800.

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

No branches or pull requests

2 participants