MCPcopy Create free account
hub / github.com/danomatika/ofxLua / luaE_freethread

Function luaE_freethread

libs/lua/lstate.c:313–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311
312
313void luaE_freethread (lua_State *L, lua_State *L1) {
314 LX *l = fromstate(L1);
315 luaF_closeupval(L1, L1->stack.p); /* close all upvalues */
316 lua_assert(L1->openupval == NULL);
317 luai_userstatefree(L, L1);
318 freestack(L1);
319 luaM_free(L, l);
320}
321
322
323int 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