| 5225 | |
| 5226 | |
| 5227 | static void resetstack (lua_State *L, int status) { |
| 5228 | L->ci = L->base_ci; |
| 5229 | L->base = L->ci->base; |
| 5230 | luaF_close(L, L->base); /* close eventual pending closures */ |
| 5231 | luaD_seterrorobj(L, status, L->base); |
| 5232 | L->nCcalls = L->baseCcalls; |
| 5233 | L->allowhook = 1; |
| 5234 | restore_stack_limit(L); |
| 5235 | L->errfunc = 0; |
| 5236 | L->errorJmp = NULL; |
| 5237 | } |
| 5238 | |
| 5239 | |
| 5240 | void luaD_throw (lua_State *L, int errcode) { |
no test coverage detected