History

rework ScriptValue to act like a stack variable rather than a pointer

Heather Anderson committed 5 years ago

Commit 85810221 parent f209c51170 files · +2837 −2594Browse files

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

Unified · Split

interface/src/scripting/TestScriptingInterface.cpp+2−2
@@ -154,9 +154,9 @@ void TestScriptingInterface::savePhysicsSimulationStats(QString originalPath) { · 153 unmodified lines
154 qApp->saveNextPhysicsStats(path);154 qApp->saveNextPhysicsStats(path);
155}155}
156 156
157void TestScriptingInterface::profileRange(const QString& name, ScriptValuePointer fn) {157void TestScriptingInterface::profileRange(const QString& name, const ScriptValue& fn) {
158 PROFILE_RANGE(script, name);158 PROFILE_RANGE(script, name);
159 fn->call();159 fn.call();
160}160}
161 161
162void TestScriptingInterface::clearCaches() {162void TestScriptingInterface::clearCaches() {