pattern: Added #pragma once to prevent multi-includes of files

This commit is contained in:
WerWolv
2022-01-30 17:49:18 +01:00
parent 7321d205fe
commit af57b39d8f
4 changed files with 33 additions and 17 deletions

View File

@@ -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();