MCPcopy Create free account
hub / github.com/axmolengine/axmol / luaD_rawrunprotected

Function luaD_rawrunprotected

3rdparty/lua/plainlua/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.85
precoverFunction · 0.85
lua_resumeFunction · 0.85
luaD_closeprotectedFunction · 0.85
luaD_pcallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected