MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaD_rawrunprotected

Function luaD_rawrunprotected

deps/lua/src/ldo.c:111–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {
112 struct lua_longjmp lj;
113 lj.status = 0;
114 lj.previous = L->errorJmp; /* chain new error handler */
115 L->errorJmp = &lj;
116 LUAI_TRY(L, &lj,
117 (*f)(L, ud);
118 );
119 L->errorJmp = lj.previous; /* restore old error handler */
120 return lj.status;
121}
122
123/* }====================================================== */
124

Callers 4

lua_newstateFunction · 0.85
lua_closeFunction · 0.85
lua_resumeFunction · 0.85
luaD_pcallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected