| 283 | |
| 284 | |
| 285 | void luaE_freethread (lua_State *L, lua_State *L1) { |
| 286 | LX *l = fromstate(L1); |
| 287 | luaF_close(L1, L1->stack); /* close all upvalues for this thread */ |
| 288 | lua_assert(L1->openupval == NULL); |
| 289 | luai_userstatefree(L, L1); |
| 290 | freestack(L1); |
| 291 | luaM_free(L, l); |
| 292 | } |
| 293 | |
| 294 | |
| 295 | LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { |
no test coverage detected