| 9047 | |
| 9048 | |
| 9049 | void luaE_freethread (lua_State *L, lua_State *L1) { |
| 9050 | luaF_close(L1, L1->stack); /* close all upvalues for this thread */ |
| 9051 | lua_assert(L1->openupval == NULL); |
| 9052 | luai_userstatefree(L1); |
| 9053 | freestack(L, L1); |
| 9054 | luaM_freemem(L, fromstate(L1), state_size(lua_State)); |
| 9055 | } |
| 9056 | |
| 9057 | |
| 9058 | LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { |
no test coverage detected