MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / luaB_pcall

Function luaB_pcall

other_src/lua/src/lbaselib.cpp: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.70
lua_pcallFunction · 0.70
lua_gettopFunction · 0.70
lua_pushbooleanFunction · 0.70
lua_insertFunction · 0.70

Tested by

no test coverage detected