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

Function luaD_rawrunprotected

third-party/lua-5.3.5/src/ldo.c:136–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

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

Calls 1

LUAI_TRYFunction · 0.85

Tested by

no test coverage detected