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

Improve error messages for multiple enums in a c_enum! block #11

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

Phantomical
Copy link
Owner

Version 0.2.0 removed the ability to declare multiple enums in a single c_enum! block. However, if you have existing code that does this then the error message doesn't really explain what went wrong. This commit adds a custom compile_error! message in addition to the regular error.

Version 0.2.0 removed the ability to declare multiple enums in a single
c_enum! block. However, if you have existing code that does this then
the error message doesn't really explain what went wrong. This commit
adds a custom compile_error! message in addition to the regular error.
@Phantomical Phantomical merged commit 7ef6f82 into main Oct 24, 2023
11 checks passed
@Phantomical Phantomical deleted the better-errors branch October 24, 2023 07:37
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.

1 participant