Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 4 files). Show all
Unified · Split
| @@ -237,6 +237,14 @@ QString ScriptEngine::getContext() const { · 236 unmodified lines | ||
| 237 | 237 | return "unknown"; |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | +bool ScriptEngine::isDebugMode() const { | |
| 241 | +#if defined(DEBUG) | |
| 242 | + return true; | |
| 243 | +#else | |
| 244 | + return false; | |
| 245 | +#endif | |
| 246 | +} | |
| 247 | + | |
| 240 | 248 | ScriptEngine::~ScriptEngine() { |
| 241 | 249 | auto scriptEngines = DependencyManager::get<ScriptEngines>(); |
| 242 | 250 | if (scriptEngines) { |