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

Function luaB_pcall

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

Source from the content-addressed store, hash-verified

373
374
375static int luaB_pcall (lua_State *L) {
376 int status;
377 luaL_checkany(L, 1);
378 status = lua_pcall(L, lua_gettop(L) - 1, LUA_MULTRET, 0);
379 lua_pushboolean(L, (status == 0));
380 lua_insert(L, 1);
381 return lua_gettop(L); /* return status + all results */
382}
383
384
385static int luaB_xpcall (lua_State *L) {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected