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