| 291 | |
| 292 | |
| 293 | void luaE_freethread (lua_State *L, lua_State *L1) { |
| 294 | LX *l = fromstate(L1); |
| 295 | luaF_close(L1, L1->stack); /* close all upvalues for this thread */ |
| 296 | lua_assert(L1->openupval == NULL); |
| 297 | luai_userstatefree(L, L1); |
| 298 | freestack(L1); |
| 299 | luaM_free(L, l); |
| 300 | } |
| 301 | |
| 302 | |
| 303 | LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { |
no test coverage detected