You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EtiTheSpirit
changed the title
[Bug] #endif is considered an invalid directive unless there is whitespace preceding the static branch
[Bug] #endif is considered an invalid directive if anything is on the immediate line after
May 25, 2024
This bug was fixed already on master (1.33.0) and the code without any spaces should compile and run without errors on a recent nightly master build. I just tried it on a May 14 nightly without any problems.
Operating System
Windows
What's the issue you encountered?
Bit of a strange one here.
If more than one static branch is used in a file, they must be broken apart by at least one line, lest
#endif
be unrecognized as a directive.How can the issue be reproduced?
Create a new file (can be blank), and open the pattern editor.
Enter the following code to the pattern:
Attempt to compile this code. Line 4 will raise the following error:
Add a line break separating lines [1,2] and [3,4] as such:
Attempt to compile this code. This will succeed.
ImHex Version
1.33.2
ImHex Build Type
Installation type
MSI, Non-portable
Additional context?
No response
The text was updated successfully, but these errors were encountered: