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

Function luaE_freethread

third-party/lua-5.3.5/src/lstate.c:285–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283
284
285void luaE_freethread (lua_State *L, lua_State *L1) {
286 LX *l = fromstate(L1);
287 luaF_close(L1, L1->stack); /* close all upvalues for this thread */
288 lua_assert(L1->openupval == NULL);
289 luai_userstatefree(L, L1);
290 freestack(L1);
291 luaM_free(L, l);
292}
293
294
295LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {

Callers 1

freeobjFunction · 0.70

Calls 2

luaF_closeFunction · 0.70
freestackFunction · 0.70

Tested by

no test coverage detected