Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Real Dart enums over FFI #11

Closed
wants to merge 2 commits into from
Closed

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.

@Levi-Lesches
Copy link
Member Author

Already fixed by #12

@Levi-Lesches Levi-Lesches deleted the ffi-enums branch January 24, 2025 09:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants