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