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

Function luaD_rawrunprotected

third-party/lua-5.2.4/src/ldo.c:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {
126 unsigned short oldnCcalls = L->nCcalls;
127 struct lua_longjmp lj;
128 lj.status = LUA_OK;
129 lj.previous = L->errorJmp; /* chain new error handler */
130 L->errorJmp = &lj;
131 LUAI_TRY(L, &lj,
132 (*f)(L, ud);
133 );
134 L->errorJmp = lj.previous; /* restore old error handler */
135 L->nCcalls = oldnCcalls;
136 return lj.status;
137}
138
139/* }====================================================== */
140

Callers 4

lua_newstateFunction · 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