-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Bug] including std/core and std/mem at in the same file crashes imhex #1641
Comments
Use import std.core;
import std.mem; Also, segfault happens on Linux too |
I have known about problems including those two files for a while which is caused by all files using import internally, but it didn't crash imhex before. |
Ok, on Windows 10, ImHex v1.35.4 |
thats normal because include and import use different pragma once systems so they can't be mixed. Because all headers use import internally when you include core it imports mem so when you include mem you get duplicate errors. |
Ok, so is it now recommended to only ever use |
All the headers that are installed with ImHex use import internally so it makes sense to use import in order to use them to avoid problems like the one presented here. If you make your own headers to use in your patterns then it depends on what features you want to use. if you want to use preprocessor features like |
Operating System
Windows
What's the issue you encountered?
If I try to include both
std/core.pat
andstd/mem.pat
imhex crashes.How can the issue be reproduced?
ImHex Version
1.33.0 a7033b6
ImHex Build Type
Installation type
MSI
Additional context?
No response
The text was updated successfully, but these errors were encountered: