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

Function luaB_xpcall

lua/lbaselib.c:392–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390
391
392static int luaB_xpcall (lua_State *L) {
393 int status;
394 luaL_checkany(L, 2);
395 lua_settop(L, 2);
396 lua_insert(L, 1); /* put error function under function to be called */
397 status = lua_pcall(L, 0, LUA_MULTRET, 1);
398 lua_pushboolean(L, (status == 0));
399 lua_replace(L, 1);
400 return lua_gettop(L); /* return status + all results */
401}
402
403
404static 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