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