MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaD_rawrunprotected

Function luaD_rawrunprotected

lib/lua/src/ldo.c:138–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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