MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaD_rawrunprotected

Function luaD_rawrunprotected

depends/lua/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.85
luaH_resizeFunction · 0.85
lua_resumeFunction · 0.85
luaD_pcallFunction · 0.85
lua_checkstackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected