MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaE_freethread

Function luaE_freethread

third-party/lua-5.5.0/src/lstate.c:300–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298
299
300void luaE_freethread (lua_State *L, lua_State *L1) {
301 LX *l = fromstate(L1);
302 luaF_closeupval(L1, L1->stack.p); /* close all upvalues */
303 lua_assert(L1->openupval == NULL);
304 luai_userstatefree(L, L1);
305 freestack(L1);
306 luaM_free(L, l);
307}
308
309
310TStatus luaE_resetthread (lua_State *L, TStatus status) {

Callers 1

freeobjFunction · 0.70

Calls 2

luaF_closeupvalFunction · 0.70
freestackFunction · 0.70

Tested by

no test coverage detected