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

metadata: One-line TraverseFiles to parse #defines from dstorageerr.h #5

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

MarijnS95
Copy link
Contributor

Some manual fiddling with generate.proj showed to me that only the first file in TraverseFiles was getting considered for constants scraping. There doesn't appear to be a .Trim() call on the string parsing in WinmdGenerator source code, likely causing the last entry to end with \n which won't match a file name. Simply changing how TraverseFiles is specified in the project file XML allows us to remove the manual definitions of these constants entirely again.

…err.h`

Some manual fiddling with `generate.proj` showed to me that only the
first file in `TraverseFiles` was getting considered for constants
scraping. There doesn't appear to be a `.Trim()` call on the string
parsing in `WinmdGenerator` source code, likely causing the last entry
to end with `\n` which won't match a file name. Simply changing how
`TraverseFiles` is specified in the project file XML allows us to remove
the manual definitions of these constants entirely again.
@hasenbanck
Copy link
Contributor

LGTM

@hasenbanck hasenbanck merged commit 7b73dfb into Tsukisoft:master Jan 30, 2024
3 checks passed
@MarijnS95 MarijnS95 deleted the rm-manual-error-constants branch January 30, 2024 10:36
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