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

@@ -9,6 +9,8 @@
#include <unordered_map>
#include <utility>
#include <hex/helpers/paths.hpp>
namespace hex::pl {
class Preprocessor {
@@ -34,6 +36,8 @@ namespace hex::pl {
std::set<std::tuple<std::string, std::string, u32>> m_defines;
std::set<std::tuple<std::string, std::string, u32>> m_pragmas;
std::set<fs::path> m_onceIncludedFiles;
std::pair<u32, std::string> m_error;
};