Skip to content

[ffigen] Ease using function pointers and function tables #875

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

Open
dcharkes opened this issue Jan 3, 2024 · 0 comments
Open

[ffigen] Ease using function pointers and function tables #875

dcharkes opened this issue Jan 3, 2024 · 0 comments

Comments

@dcharkes
Copy link
Collaborator

dcharkes commented Jan 3, 2024

Some projects have function tables exposed in header files. Using such function pointers requires the user to write an asFunction with the correct Dart signature. (I believe the main use case in C code is dynamic dispatch.)

We should explore if we can generate the Dart code that does the asFunction.

Some use cases:

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