| 79 | |
| 80 | |
| 81 | static void resetstack (lua_State *L, int status) { |
| 82 | L->ci = L->base_ci; |
| 83 | L->base = L->ci->base; |
| 84 | luaF_close(L, L->base); /* close eventual pending closures */ |
| 85 | luaD_seterrorobj(L, status, L->base); |
| 86 | L->nCcalls = L->baseCcalls; |
| 87 | L->allowhook = 1; |
| 88 | restore_stack_limit(L); |
| 89 | L->errfunc = 0; |
| 90 | L->errorJmp = NULL; |
| 91 | } |
| 92 | |
| 93 | |
| 94 | void luaD_throw (lua_State *L, int errcode) { |
no test coverage detected