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

Real Dart enums over FFI #11

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

Real Dart enums over FFI #11

wants to merge 2 commits into from

Conversation

Levi-Lesches
Copy link
Member

Note

Waiting for ffigen 13.0.0 to release

Thanks to dart-lang/native#1202 by yours truly, FFI now returns an actual Dart enum instead of an integer representing the value of the C enum. This simplifies our API, code, and gets rid of magic numbers completely.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes to this file can be reverted and are just for testing.

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.

2 participants