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