| 92 | |
| 93 | |
| 94 | void luaD_throw (lua_State *L, int errcode) { |
| 95 | if (L->errorJmp) { |
| 96 | L->errorJmp->status = errcode; |
| 97 | LUAI_THROW(L, L->errorJmp); |
| 98 | } |
| 99 | else { |
| 100 | L->status = cast_byte(errcode); |
| 101 | if (G(L)->panic) { |
| 102 | resetstack(L, errcode); |
| 103 | lua_unlock(L); |
| 104 | G(L)->panic(L); |
| 105 | } |
| 106 | exit(EXIT_FAILURE); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | |
| 111 | int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { |
no test coverage detected