| 377 | } |
| 378 | |
| 379 | void ScriptCompiler::addError(uint32 code, const Ogre::String &file, int line, const String &msg) |
| 380 | { |
| 381 | if(mListener) |
| 382 | { |
| 383 | mListener->handleError(this, code, file, line, msg); |
| 384 | } |
| 385 | else |
| 386 | { |
| 387 | static ScriptCompilerListener defaultListener; |
| 388 | defaultListener.handleError(this, code, file, line, msg); |
| 389 | } |
| 390 | |
| 391 | mErrors.push_back({file, msg, line, code}); |
| 392 | } |
| 393 | |
| 394 | void ScriptCompiler::addError(const AbstractNode& node, const String& msg, uint32 code) |
| 395 | { |
no test coverage detected