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

Empty enum handling #128

Open
KislyjKisel opened this issue Jan 18, 2024 · 0 comments
Open

Empty enum handling #128

KislyjKisel opened this issue Jan 18, 2024 · 0 comments

Comments

@KislyjKisel
Copy link

Empty enums by themselves cause errors in C compiler. But for enum used in a typedef before its definition (typedef enum SomeFlags SomeFlags;) c2ffi produces enum declaration with "fields": []. cl-autowrap then fails with "invalid index 0..." in find-prefix (elt sorted-fields 0), which is used in parse-enum-fields I think.

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

1 participant