| 203 | } |
| 204 | |
| 205 | void ScriptCompilerListener::handleError(ScriptCompiler *compiler, uint32 code, const String &file, int line, const String &msg) |
| 206 | { |
| 207 | StringStream ss; |
| 208 | ss << "ScriptCompiler - " << ScriptCompiler::formatErrorCode(code) << " in " << file << "(" << line << ")"; |
| 209 | if(!msg.empty()) |
| 210 | ss << ": " << msg; |
| 211 | |
| 212 | if(code == ScriptCompiler::CE_DEPRECATEDSYMBOL) |
| 213 | LogManager::getSingleton().logWarning(ss.str()); |
| 214 | else |
| 215 | LogManager::getSingleton().logError(ss.str()); |
| 216 | } |
| 217 | |
| 218 | bool ScriptCompilerListener::handleEvent(ScriptCompiler *compiler, ScriptCompilerEvent *evt, void *retval) |
| 219 | { |
no test coverage detected