MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaB_pcall

Function luaB_pcall

deps/lua/src/lbaselib.c:374–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected