MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaD_rawrunprotected

Function luaD_rawrunprotected

extlibs/lua/src/ldo.c:141–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140
141int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {
142 global_State *g = G(L);
143 l_uint32 oldnCcalls = g->Cstacklimit - (L->nCcalls + L->nci);
144 struct lua_longjmp lj;
145 lj.status = LUA_OK;
146 lj.previous = L->errorJmp; /* chain new error handler */
147 L->errorJmp = &lj;
148 LUAI_TRY(L, &lj,
149 (*f)(L, ud);
150 );
151 L->errorJmp = lj.previous; /* restore old error handler */
152 L->nCcalls = g->Cstacklimit - oldnCcalls - L->nci;
153 return lj.status;
154}
155
156/* }====================================================== */
157

Callers 4

lua_newstateFunction · 0.85
luaF_newtbcupvalFunction · 0.85
lua_resumeFunction · 0.85
luaD_pcallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected