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

Function luaE_freethread

third-party/lua-5.4.6/src/lstate.c:315–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313
314
315void luaE_freethread (lua_State *L, lua_State *L1) {
316 LX *l = fromstate(L1);
317 luaF_closeupval(L1, L1->stack.p); /* close all upvalues */
318 lua_assert(L1->openupval == NULL);
319 luai_userstatefree(L, L1);
320 freestack(L1);
321 luaM_free(L, l);
322}
323
324
325int luaE_resetthread (lua_State *L, int status) {

Callers 1

freeobjFunction · 0.70

Calls 2

luaF_closeupvalFunction · 0.70
freestackFunction · 0.70

Tested by

no test coverage detected