| 5238 | |
| 5239 | |
| 5240 | void luaD_throw (lua_State *L, int errcode) { |
| 5241 | if (L->errorJmp) { |
| 5242 | L->errorJmp->status = errcode; |
| 5243 | LUAI_THROW(L, L->errorJmp); |
| 5244 | } |
| 5245 | else { |
| 5246 | L->status = cast_byte(errcode); |
| 5247 | if (G(L)->panic) { |
| 5248 | resetstack(L, errcode); |
| 5249 | lua_unlock(L); |
| 5250 | G(L)->panic(L); |
| 5251 | } |
| 5252 | exit(EXIT_FAILURE); |
| 5253 | } |
| 5254 | } |
| 5255 | |
| 5256 | |
| 5257 | int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { |
no test coverage detected