MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaD_rawrunprotected

Function luaD_rawrunprotected

third-party/lua-5.5.0/src/ldo.c:160–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158
159
160TStatus luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {
161 l_uint32 oldnCcalls = L->nCcalls;
162 lua_longjmp lj;
163 lj.status = LUA_OK;
164 lj.previous = L->errorJmp; /* chain new error handler */
165 L->errorJmp = &lj;
166 LUAI_TRY(L, &lj, f, ud); /* call 'f' catching errors */
167 L->errorJmp = lj.previous; /* restore old error handler */
168 L->nCcalls = oldnCcalls;
169 return lj.status;
170}
171
172/* }====================================================== */
173

Callers 7

lua_newstateFunction · 0.70
clearbuffFunction · 0.70
precoverFunction · 0.70
lua_resumeFunction · 0.70
luaD_closeprotectedFunction · 0.70
luaD_pcallFunction · 0.70
luaS_newextlstrFunction · 0.70

Calls 1

LUAI_TRYFunction · 0.85

Tested by

no test coverage detected