MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaD_rawrunprotected

Function luaD_rawrunprotected

freebsd/contrib/openzfs/module/lua/ldo.c:194–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193
194int 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

Callers 4

lua_newstateFunction · 0.70
lua_resumeFunction · 0.70
luaD_pcallFunction · 0.70
lua_checkstackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected