MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaE_freethread

Function luaE_freethread

depends/lua/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.85

Calls 2

luaF_closeFunction · 0.85
freestackFunction · 0.85

Tested by

no test coverage detected