MCPcopy Create free account
hub / github.com/KikoPlayProject/KikoPlay / exitHook

Method exitHook

Extension/Script/scriptbase.cpp:261–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void 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
269QString ScriptBase::loadMeta(const QString &scriptPath)
270{

Callers

nothing calls this directly

Calls 5

lua_sethookFunction · 0.85
QStringClass · 0.85
luaL_errorFunction · 0.85
logMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected