| 314 | |
| 315 | |
| 316 | void luaE_freethread (lua_State *L, lua_State *L1) { |
| 317 | LX *l = fromstate(L1); |
| 318 | luaF_closeupval(L1, L1->stack); /* close all upvalues */ |
| 319 | lua_assert(L1->openupval == NULL); |
| 320 | luai_userstatefree(L, L1); |
| 321 | freestack(L1); |
| 322 | luaM_free(L, l); |
| 323 | } |
| 324 | |
| 325 | |
| 326 | int luaE_resetthread (lua_State *L, int status) { |
no test coverage detected