MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaB_pcall

Function luaB_pcall

third-party/lua-5.3.5/src/lbaselib.c:419–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417
418
419static int luaB_pcall (lua_State *L) {
420 int status;
421 luaL_checkany(L, 1);
422 lua_pushboolean(L, 1); /* first result if no errors */
423 lua_insert(L, 1); /* put it in place */
424 status = lua_pcallk(L, lua_gettop(L) - 2, LUA_MULTRET, 0, 0, finishpcall);
425 return finishpcall(L, status, 0);
426}
427
428
429/*

Callers

nothing calls this directly

Calls 6

luaL_checkanyFunction · 0.70
lua_pushbooleanFunction · 0.70
lua_pcallkFunction · 0.70
lua_gettopFunction · 0.70
finishpcallFunction · 0.70
lua_insertFunction · 0.50

Tested by

no test coverage detected