MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaE_freethread

Function luaE_freethread

extlibs/lua/src/lstate.c:344–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342
343
344void luaE_freethread (lua_State *L, lua_State *L1) {
345 LX *l = fromstate(L1);
346 luaF_close(L1, L1->stack, NOCLOSINGMETH); /* close all upvalues */
347 lua_assert(L1->openupval == NULL);
348 luai_userstatefree(L, L1);
349 freestack(L1);
350 luaM_free(L, l);
351}
352
353
354int lua_resetthread (lua_State *L) {

Callers 1

freeobjFunction · 0.85

Calls 2

luaF_closeFunction · 0.85
freestackFunction · 0.85

Tested by

no test coverage detected