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

Function luaE_freethread

other_src/lua/src/lstate.cpp:138–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137
138void luaE_freethread (lua_State *L, lua_State *L1) {
139 luaF_close(L1, L1->stack); /* close all upvalues for this thread */
140 lua_assert(L1->openupval == NULL);
141 luai_userstatefree(L1);
142 freestack(L, L1);
143 luaM_freemem(L, fromstate(L1), state_size(lua_State));
144}
145
146
147LUA_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