| 298 | |
| 299 | |
| 300 | void luaE_freethread (lua_State *L, lua_State *L1) { |
| 301 | LX *l = fromstate(L1); |
| 302 | luaF_closeupval(L1, L1->stack.p); /* close all upvalues */ |
| 303 | lua_assert(L1->openupval == NULL); |
| 304 | luai_userstatefree(L, L1); |
| 305 | freestack(L1); |
| 306 | luaM_free(L, l); |
| 307 | } |
| 308 | |
| 309 | |
| 310 | TStatus luaE_resetthread (lua_State *L, TStatus status) { |
no test coverage detected