patterns: Fixed eval_depth default and preprocessor errors

This commit is contained in:
WerWolv
2021-03-15 08:11:19 +01:00
parent 2326e090af
commit f34b946ea9
5 changed files with 26 additions and 20 deletions

View File

@@ -48,7 +48,7 @@ namespace hex::lang {
std::vector<std::vector<PatternData*>*> m_currMembers;
LogConsole m_console;
u32 m_recursionLimit = 16;
u32 m_recursionLimit;
u32 m_currRecursionDepth;

View File

@@ -39,9 +39,9 @@ namespace hex::lang {
Validator *m_validator;
Evaluator *m_evaluator;
prv::Provider *m_provider;
std::endian m_defaultEndian;
u32 m_recursionLimit;
prv::Provider *m_provider = nullptr;
std::endian m_defaultEndian = std::endian::native;
u32 m_recursionLimit = 32;
std::optional<std::pair<u32, std::string>> m_currError;
};

View File

@@ -32,8 +32,8 @@ namespace hex::lang {
std::unordered_map<std::string, std::function<bool(std::string)>> m_pragmaHandlers;
std::set<std::pair<std::string, std::string>> m_defines;
std::set<std::pair<std::string, std::string>> m_pragmas;
std::set<std::tuple<std::string, std::string, u32>> m_defines;
std::set<std::tuple<std::string, std::string, u32>> m_pragmas;
std::pair<u32, std::string> m_error;
};