1037 lines · 42.5 KB · C++
RawDownload
QStringList ScriptEngineQtScript::uncaughtExceptionBacktrace() const {    return QScriptEngine::uncaughtExceptionBacktrace();} int ScriptEngineQtScript::uncaughtExceptionLineNumber() const {    return QScriptEngine::uncaughtExceptionLineNumber();} bool ScriptEngineQtScript::raiseException(const ScriptValuePointer& exception) {    ScriptValueQtWrapper* unwrapped = ScriptValueQtWrapper::unwrap(exception);    QScriptValue qException = unwrapped ? unwrapped->toQtValue() : QScriptEngine::newVariant(exception->toVariant());    return raiseException(qException);} ScriptValuePointer ScriptEngineQtScript::create(int type, const void* ptr) {    QScriptValue result = qScriptValueFromValue_helper(this, type, ptr);    return ScriptValuePointer(new ScriptValueQtWrapper(const_cast<ScriptEngineQtScript*>(this), std::move(result)));} bool ScriptEngineQtScript::convert(const ScriptValuePointer& value, int type, void* ptr) {    ScriptValueQtWrapper* unwrapped = ScriptValueQtWrapper::unwrap(value);    if (unwrapped == nullptr) {        return false;    }    return qscriptvalue_cast_helper(unwrapped->toQtValue(), type, ptr);}/*void ScriptEngineQtScript::registerCustomType(int type,                                              ScriptEngine::MarshalFunction mf,                                              ScriptEngine::DemarshalFunction df,                                              const ScriptValuePointer& prototype) {    ScriptValueQtWrapper* unwrapped = ScriptValueQtWrapper::unwrap(prototype);    if (unwrapped != nullptr) {        qScriptRegisterMetaType_helper(this, type, mf, df, unwrapped->toQtValue());    }}*/

Lines 1001–1037 of 1037. Previous lines