MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaB_xpcall

Function luaB_xpcall

app/redis-6.2.6/deps/lua/src/lbaselib.c:385–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384
385static int luaB_xpcall (lua_State *L) {
386 int status;
387 luaL_checkany(L, 2);
388 lua_settop(L, 2);
389 lua_insert(L, 1); /* put error function under function to be called */
390 status = lua_pcall(L, 0, LUA_MULTRET, 1);
391 lua_pushboolean(L, (status == 0));
392 lua_replace(L, 1);
393 return lua_gettop(L); /* return status + all results */
394}
395
396
397static int luaB_tostring (lua_State *L) {

Callers

nothing calls this directly

Calls 7

lua_pcallFunction · 0.85
luaL_checkanyFunction · 0.70
lua_settopFunction · 0.70
lua_insertFunction · 0.70
lua_pushbooleanFunction · 0.70
lua_replaceFunction · 0.70
lua_gettopFunction · 0.70

Tested by

no test coverage detected