MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaB_xpcall

Function luaB_xpcall

Source/Misc/lua/src/lua.c:11248–11257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11246
11247
11248static int luaB_xpcall (lua_State *L) {
11249int status;
11250luaL_checkany(L, 2);
11251lua_settop(L, 2);
11252lua_insert(L, 1); /* put error function under function to be called */
11253status = lua_pcall(L, 0, LUA_MULTRET, 1);
11254lua_pushboolean(L, (status == 0));
11255lua_replace(L, 1);
11256return lua_gettop(L); /* return status + all results */
11257}
11258
11259
11260static 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