Skip to content

Conversation

@henrymkw
Copy link
Contributor

@henrymkw henrymkw commented Aug 2, 2025

decompctx.py only checks the first line for #pragma once or #ifndef, resulting in redefinition errors when they're not on the first line. This PR fixes this by simplifying logic in process_file() to only check the included file path. I also added a print to indicate if the context file generation was successful or not.

I tested on a few different source files and it seems to work.

@decomp-dev
Copy link

decomp-dev bot commented Aug 2, 2025

Report for RMCP01 (336d717 - 3a6ebd8)

No changes

@em-eight
Copy link
Contributor

Nice, I like the workaround 😉

@em-eight em-eight merged commit 78572c9 into snailspeed3:master Sep 16, 2025
1 check passed
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