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

Retain instead of truncate unknown flags when converting to bitflags #80

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

MarijnS95
Copy link
Collaborator

Depends on #79

bitflags intrinsically supports holding unknown flag values, and pretty-printing a non-zero hex code if there are any. This should make our conversion functions lossless and allow us/users to more easily spot new, unsupported constants.

`bitflags` intrinsically supports holding unknown flag values, and
pretty-printing a non-zero hex code if there are any.  This should make
our conversion functions lossless and allow us/users to more easily spot
new, unsupported constants.
Copy link
Owner

@raymanfx raymanfx left a comment

Choose a reason for hiding this comment

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

Good stuff, thanks!

@MarijnS95 MarijnS95 merged commit 0394443 into raymanfx:master Nov 10, 2023
5 checks passed
@MarijnS95 MarijnS95 deleted the bitflags-lossless branch November 10, 2023 23:20
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