| 192 | |
| 193 | |
| 194 | int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { |
| 195 | unsigned short oldnCcalls = L->nCcalls; |
| 196 | struct lua_longjmp lj; |
| 197 | lj.status = LUA_OK; |
| 198 | lj.previous = L->errorJmp; /* chain new error handler */ |
| 199 | // cppcheck-suppress autoVariables |
| 200 | L->errorJmp = &lj; |
| 201 | LUAI_TRY(L, &lj, |
| 202 | (*f)(L, ud); |
| 203 | ); |
| 204 | L->errorJmp = lj.previous; /* restore old error handler */ |
| 205 | L->nCcalls = oldnCcalls; |
| 206 | return lj.status; |
| 207 | } |
| 208 | |
| 209 | /* }====================================================== */ |
| 210 |
no outgoing calls
no test coverage detected