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

Function luaB_xpcall

deps/lua/src/lbaselib.c:384–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected