| 252 | |
| 253 | |
| 254 | void luaE_freethread (lua_State *L, lua_State *L1) { |
| 255 | LX *l = fromstate(L1); |
| 256 | luaF_close(L1, L1->stack); /* close all upvalues for this thread */ |
| 257 | lua_assert(L1->openupval == NULL); |
| 258 | luai_userstatefree(L, L1); |
| 259 | freestack(L1); |
| 260 | luaM_free(L, l); |
| 261 | } |
| 262 | |
| 263 | |
| 264 | LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { |
no test coverage detected