| 259 | } |
| 260 | |
| 261 | void ScriptBase::exitHook(lua_State *L, lua_Debug *ar) |
| 262 | { |
| 263 | lua_sethook(L, exitHook, 0, 1); |
| 264 | ScriptBase *script = ScriptBase::getScript(L); |
| 265 | Logger::logger()->log(Logger::Script, QString("stop: %1").arg(script? script->id() : "[unknown]")); |
| 266 | luaL_error(L, "script stop"); |
| 267 | } |
| 268 | |
| 269 | QString ScriptBase::loadMeta(const QString &scriptPath) |
| 270 | { |
nothing calls this directly
no test coverage detected