MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaE_freethread

Function luaE_freethread

src/Chain/libraries/glua/lstate.cpp:289–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287
288
289void luaE_freethread(lua_State *L, lua_State *L1) {
290 LX *l = fromstate(L1);
291 luaF_close(L1, L1->stack); /* close all upvalues for this thread */
292 lua_assert(L1->openupval == nullptr);
293 luai_userstatefree(L, L1);
294 freestack(L1);
295 luaM_free(L, l);
296}
297
298
299LUA_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