| 342 | |
| 343 | |
| 344 | void luaE_freethread (lua_State *L, lua_State *L1) { |
| 345 | LX *l = fromstate(L1); |
| 346 | luaF_close(L1, L1->stack, NOCLOSINGMETH); /* close all upvalues */ |
| 347 | lua_assert(L1->openupval == NULL); |
| 348 | luai_userstatefree(L, L1); |
| 349 | freestack(L1); |
| 350 | luaM_free(L, l); |
| 351 | } |
| 352 | |
| 353 | |
| 354 | int lua_resetthread (lua_State *L) { |
no test coverage detected