History

isolate calls to the QtScript libraries to an interface we control

Heather Anderson committed 5 years ago

Commit 1e018db1 parent 713b29e260 files · +6904 −5064Browse files

Showing the changes to interface/src/scripting/TestScriptingInterface.cpp (1 of 260 files). Show all

Unified · Split

interface/src/scripting/TestScriptingInterface.cpp+3−2
@@ -16,6 +16,7 @@ · 15 unmodified lines
16#include <DependencyManager.h>16#include <DependencyManager.h>
17#include <MainWindow.h>17#include <MainWindow.h>
18#include <OffscreenUi.h>18#include <OffscreenUi.h>
19#include <ScriptValue.h>
19#include <StatTracker.h>20#include <StatTracker.h>
20#include <Trace.h>21#include <Trace.h>
21 22
@@ -153,9 +154,9 @@ void TestScriptingInterface::savePhysicsSimulationStats(QString originalPath) { · 131 unmodified lines
153 qApp->saveNextPhysicsStats(path);154 qApp->saveNextPhysicsStats(path);
154}155}
155 156
156void TestScriptingInterface::profileRange(const QString& name, QScriptValue fn) {157void TestScriptingInterface::profileRange(const QString& name, ScriptValuePointer fn) {
157 PROFILE_RANGE(script, name);158 PROFILE_RANGE(script, name);
158 fn.call();159 fn->call();
159}160}
160 161
161void TestScriptingInterface::clearCaches() {162void TestScriptingInterface::clearCaches() {