Stack tester changes
Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 16 files). Show all
Unified · Split
| @@ -74,6 +74,7 @@ · 73 unmodified lines | ||
| 74 | 74 | #include "WebSocketClass.h" |
| 75 | 75 | #include "RecordingScriptingInterface.h" |
| 76 | 76 | #include "ScriptEngines.h" |
| 77 | +#include "StackTestScriptingInterface.h" | |
| 77 | 78 | #include "ModelScriptingInterface.h" |
| 78 | 79 | |
| 79 | 80 | |
| @@ -762,6 +763,10 @@ void ScriptEngine::init() { · 682 unmodified lines | ||
| 762 | 763 | qScriptRegisterMetaType(this, meshesToScriptValue, meshesFromScriptValue); |
| 763 | 764 | |
| 764 | 765 | registerGlobalObject("UserActivityLogger", DependencyManager::get<UserActivityLoggerScriptingInterface>().data()); |
| 766 | + | |
| 767 | +#if DEV_BUILD || PR_BUILD | |
| 768 | + registerGlobalObject("StackTest", new StackTestScriptingInterface(this)); | |
| 769 | +#endif | |
| 765 | 770 | } |
| 766 | 771 | |
| 767 | 772 | void ScriptEngine::registerValue(const QString& valueName, QScriptValue value) { |