MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaE_freethread

Function luaE_freethread

3rd/lua-5.4.3/src/lstate.c:316–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

freeobjFunction · 0.85

Calls 2

luaF_closeupvalFunction · 0.85
freestackFunction · 0.85

Tested by

no test coverage detected