mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
pattern: Added #pragma once to prevent multi-includes of files
This commit is contained in:
@@ -105,6 +105,7 @@ namespace hex::plugin::builtin {
|
||||
return;
|
||||
|
||||
pl::Preprocessor preprocessor;
|
||||
preprocessor.addDefaultPragmaHandlers();
|
||||
|
||||
if (!ImHexApi::Provider::isValid())
|
||||
return;
|
||||
@@ -119,7 +120,6 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
return !std::all_of(value.begin(), value.end(), isspace) && !value.ends_with('\n') && !value.ends_with('\r');
|
||||
});
|
||||
preprocessor.addDefaultPragmaHandlers();
|
||||
|
||||
this->m_possiblePatternFiles.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user