#include #include namespace hex::pl { void LogConsole::log(Level level, const std::string &message) { this->m_consoleLog.emplace_back(level, message); } [[noreturn]] void LogConsole::abortEvaluation(const std::string &message) { throw PatternLanguageError(0, message); } [[noreturn]] void LogConsole::abortEvaluation(const std::string &message, const ASTNode *node) { if (node == nullptr) abortEvaluation(message); else throw PatternLanguageError(node->getLineNumber(), message); } void LogConsole::clear() { this->m_consoleLog.clear(); this->m_lastHardError = {}; } }