mirror of
https://github.com/lubosz/overte.git
synced 2025-06-03 03:50:16 +02:00
Update libraries/script-engine/src/ScriptEngine.cpp
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
parent
50067e3361
commit
4b2c71cf61
1 changed files with 1 additions and 6 deletions
|
@ -130,12 +130,7 @@ static QScriptValue debugPrint(QScriptContext* context, QScriptEngine* engine) {
|
||||||
// This message was sent by one of our script engines, let's try to see if we can find the source.
|
// This message was sent by one of our script engines, let's try to see if we can find the source.
|
||||||
// Note that the first entry in the backtrace should be "print" and is somewhat useless to us
|
// Note that the first entry in the backtrace should be "print" and is somewhat useless to us
|
||||||
AbstractLoggerInterface* loggerInterface = AbstractLoggerInterface::get();
|
AbstractLoggerInterface* loggerInterface = AbstractLoggerInterface::get();
|
||||||
if (!loggerInterface) {
|
if (loggerInterface && loggerInterface->showSourceDebugging()) {
|
||||||
qCDebug(scriptengine_script, "%s", qUtf8Printable(message));
|
|
||||||
return QScriptValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (loggerInterface->showSourceDebugging()) {
|
|
||||||
QScriptContext* userContext = context;
|
QScriptContext* userContext = context;
|
||||||
while (userContext && QScriptContextInfo(userContext).functionType() == QScriptContextInfo::NativeFunction) {
|
while (userContext && QScriptContextInfo(userContext).functionType() == QScriptContextInfo::NativeFunction) {
|
||||||
userContext = userContext->parentContext();
|
userContext = userContext->parentContext();
|
||||||
|
|
Loading…
Reference in a new issue