# | Line 47 | Line 47 | |
---|---|---|
47 | ||
48 | #include "selection/SelectionToken.hpp" | |
49 | #include "selection/TokenMap.hpp" | |
50 | + | #include "brains/SimInfo.hpp" |
51 | + | |
52 | namespace oopse { | |
53 | ||
54 | ||
# | Line 148 | Line 150 | namespace oopse { | |
150 | bool isNameValid(const std::string& name); | |
151 | ||
152 | bool compileError(const std::string& errorMsg) { | |
153 | < | std::cerr << "SelectionCompiler Error: " << errorMsg << std::endl; |
153 | > | |
154 | > | sprintf( painCave.errMsg, |
155 | > | "SelectionCompiler Error: %s\n", errorMsg.c_str()); |
156 | > | painCave.severity = OOPSE_ERROR; |
157 | > | painCave.isFatal = 1; |
158 | > | simError(); |
159 | > | |
160 | error = true; | |
161 | this->errorMessage = errorMsg; | |
162 | return false; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |