66d1b3fd2f
* patterns: Initial work to refactor pattern language to use smart pointers * patterns: Fixed remaining issues, moved patterns to unique files * sys: Added missing includes for macOS
14 lines
427 B
C++
14 lines
427 B
C++
#include <hex/pattern_language/log_console.hpp>
|
|
|
|
#include <hex/pattern_language/ast/ast_node.hpp>
|
|
|
|
namespace hex::pl {
|
|
|
|
[[noreturn]] void LogConsole::abortEvaluation(const std::string &message, const ASTNode *node) {
|
|
if (node == nullptr)
|
|
throw PatternLanguageError(0, "Evaluator: " + message);
|
|
else
|
|
throw PatternLanguageError(node->getLineNumber(), "Evaluator: " + message);
|
|
}
|
|
|
|
} |