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

Function luaD_rawrunprotected

third-party/lua-5.4.6/src/ldo.c:135–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

lua_newstateFunction · 0.70
precoverFunction · 0.70
lua_resumeFunction · 0.70
luaD_closeprotectedFunction · 0.70
luaD_pcallFunction · 0.70

Calls 1

LUAI_TRYFunction · 0.85

Tested by

no test coverage detected