Showing the changes to libraries/script-engine/src/ConsoleScriptingInterface.cpp (1 of 8 files). Show all
Unified · Split
| @@ -34,7 +34,7 @@ QList<QString> ConsoleScriptingInterface::_groupDetails = QList<QString>(); · 33 unmodified lines | ||
| 34 | 34 | |
| 35 | 35 | ScriptValue ConsoleScriptingInterface::info(ScriptContext* context, ScriptEngine* engine) { |
| 36 | 36 | if (ScriptManager* scriptManager = engine->manager()) { |
| 37 | − scriptManager->scriptInfoMessage(appendArguments(context)); | |
| 37 | + scriptManager->scriptInfoMessage(appendArguments(context), context->currentFileName(), context->currentLineNumber()); | |
| 38 | 38 | } |
| 39 | 39 | return engine->nullValue(); |
| 40 | 40 | } |
| @@ -43,7 +43,7 @@ ScriptValue ConsoleScriptingInterface::log(ScriptContext* context, ScriptEngine* · 2 unmodified lines | ||
| 43 | 43 | QString message = appendArguments(context); |
| 44 | 44 | if (_groupDetails.count() == 0) { |
| 45 | 45 | if (ScriptManager* scriptManager = engine->manager()) { |
| 46 | − scriptManager->scriptPrintedMessage(message); | |
| 46 | + scriptManager->scriptPrintedMessage(message, context->currentFileName(), context->currentLineNumber()); | |
| 47 | 47 | } |
| 48 | 48 | } else { |
| 49 | 49 | logGroupMessage(message, engine); |
| @@ -53,28 +53,28 @@ ScriptValue ConsoleScriptingInterface::log(ScriptContext* context, ScriptEngine* · 3 unmodified lines | ||
| 53 | 53 | |
| 54 | 54 | ScriptValue ConsoleScriptingInterface::debug(ScriptContext* context, ScriptEngine* engine) { |
| 55 | 55 | if (ScriptManager* scriptManager = engine->manager()) { |
| 56 | − scriptManager->scriptPrintedMessage(appendArguments(context)); | |
| 56 | + scriptManager->scriptPrintedMessage(appendArguments(context), context->currentFileName(), context->currentLineNumber()); | |
| 57 | 57 | } |
| 58 | 58 | return engine->nullValue(); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | ScriptValue ConsoleScriptingInterface::warn(ScriptContext* context, ScriptEngine* engine) { |
| 62 | 62 | if (ScriptManager* scriptManager = engine->manager()) { |
| 63 | − scriptManager->scriptWarningMessage(appendArguments(context)); | |
| 63 | + scriptManager->scriptWarningMessage(appendArguments(context), context->currentFileName(), context->currentLineNumber()); | |
| 64 | 64 | } |
| 65 | 65 | return engine->nullValue(); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | ScriptValue ConsoleScriptingInterface::error(ScriptContext* context, ScriptEngine* engine) { |
| 69 | 69 | if (ScriptManager* scriptManager = engine->manager()) { |
| 70 | − scriptManager->scriptErrorMessage(appendArguments(context)); | |
| 70 | + scriptManager->scriptErrorMessage(appendArguments(context), context->currentFileName(), context->currentLineNumber()); | |
| 71 | 71 | } |
| 72 | 72 | return engine->nullValue(); |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | ScriptValue ConsoleScriptingInterface::exception(ScriptContext* context, ScriptEngine* engine) { |
| 76 | 76 | if (ScriptManager* scriptManager = engine->manager()) { |
| 77 | − scriptManager->scriptErrorMessage(appendArguments(context)); | |
| 77 | + scriptManager->scriptErrorMessage(appendArguments(context), context->currentFileName(), context->currentLineNumber()); | |
| 78 | 78 | } |
| 79 | 79 | return engine->nullValue(); |
| 80 | 80 | } |