MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaE_freethread

Function luaE_freethread

Source/Misc/lua/src/lua.c:9049–9055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9047
9048
9049void luaE_freethread (lua_State *L, lua_State *L1) {
9050luaF_close(L1, L1->stack); /* close all upvalues for this thread */
9051lua_assert(L1->openupval == NULL);
9052luai_userstatefree(L1);
9053freestack(L, L1);
9054luaM_freemem(L, fromstate(L1), state_size(lua_State));
9055}
9056
9057
9058LUA_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