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

Function luaB_pcall

lua/lbaselib.c:382–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380
381
382static int luaB_pcall (lua_State *L) {
383 int status;
384 luaL_checkany(L, 1);
385 status = lua_pcall(L, lua_gettop(L) - 1, LUA_MULTRET, 0);
386 lua_pushboolean(L, (status == 0));
387 lua_insert(L, 1);
388 return lua_gettop(L); /* return status + all results */
389}
390
391
392static 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