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

Generate contains method for enum flags #2323

Merged
merged 4 commits into from
Feb 3, 2023
Merged

Generate contains method for enum flags #2323

merged 4 commits into from
Feb 3, 2023

Conversation

kennykerr
Copy link
Collaborator

@kennykerr kennykerr commented Feb 3, 2023

The bitwise operators are generally sufficient, but I noticed some error-prone code that could be avoided with a contains method that does simplify this operation in particular. Related to #793. For example:

if !text.is_empty() && info.dwStyle.contains(WS_VISIBLE) {

@kennykerr kennykerr merged commit 61d5d04 into master Feb 3, 2023
@kennykerr kennykerr deleted the containsx branch February 3, 2023 18:01
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