| 134 | |
| 135 | |
| 136 | int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { |
| 137 | unsigned short oldnCcalls = L->nCcalls; |
| 138 | struct lua_longjmp lj; |
| 139 | lj.status = LUA_OK; |
| 140 | lj.previous = L->errorJmp; /* chain new error handler */ |
| 141 | L->errorJmp = &lj; |
| 142 | LUAI_TRY(L, &lj, |
| 143 | (*f)(L, ud); |
| 144 | ); |
| 145 | L->errorJmp = lj.previous; /* restore old error handler */ |
| 146 | L->nCcalls = oldnCcalls; |
| 147 | return lj.status; |
| 148 | } |
| 149 | |
| 150 | /* }====================================================== */ |
| 151 |
no outgoing calls
no test coverage detected