MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_pcall

Function lua_pcall

lua/lapi.c:812–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810
811
812LUA_API int lua_pcall (lua_State *L, int nargs, int nresults, int errfunc) {
813 struct CallS c;
814 int status;
815 ptrdiff_t func;
816 lua_lock(L);
817 api_checknelems(L, nargs+1);
818 checkresults(L, nargs, nresults);
819 if (errfunc == 0)
820 func = 0;
821 else {
822 StkId o = index2adr(L, errfunc);
823 api_checkvalidindex(L, o);
824 func = savestack(L, o);
825 }
826 c.func = L->top - (nargs+1); /* function to be called */
827 c.nresults = nresults;
828 status = luaD_pcall(L, f_call, &c, savestack(L, c.func), func);
829 adjustresults(L, nresults);
830 lua_unlock(L);
831 return status;
832}
833
834
835/*

Callers 11

docallFunction · 0.85
dottyFunction · 0.85
luaB_pcallFunction · 0.85
luaB_xpcallFunction · 0.85
l_errfuncFunction · 0.85
db_debugFunction · 0.85
db_db_debugFunction · 0.85
run_sp_intFunction · 0.85
run_funcFunction · 0.85
db_debugFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaD_pcallFunction · 0.85

Tested by

no test coverage detected