Showing the changes to interface/src/scripting/TestScriptingInterface.cpp (1 of 260 files). Show all
Unified · Split
| @@ -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 | ||
| 156 | void TestScriptingInterface::profileRange(const QString& name, QScriptValue fn) { | 157 | void 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 | ||
| 161 | void TestScriptingInterface::clearCaches() { | 162 | void TestScriptingInterface::clearCaches() { |