| 254 | |
| 255 | |
| 256 | void luaE_freethread (lua_State *L, lua_State *L1) { |
| 257 | LX *l = fromstate(L1); |
| 258 | luaF_close(L1, L1->stack); /* close all upvalues for this thread */ |
| 259 | lua_assert(L1->openupval == NULL); |
| 260 | luai_userstatefree(L, L1); |
| 261 | freestack(L1); |
| 262 | luaM_free(L, l); |
| 263 | } |
| 264 | |
| 265 | |
| 266 | LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { |
no test coverage detected