MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaB_pcall

Function luaB_pcall

3rd/lua-5.4.3/src/lbaselib.c:451–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449
450
451static int luaB_pcall (lua_State *L) {
452 int status;
453 luaL_checkany(L, 1);
454 lua_pushboolean(L, 1); /* first result if no errors */
455 lua_insert(L, 1); /* put it in place */
456 status = lua_pcallk(L, lua_gettop(L) - 2, LUA_MULTRET, 0, 0, finishpcall);
457 return finishpcall(L, status, 0);
458}
459
460
461/*

Callers

nothing calls this directly

Calls 5

luaL_checkanyFunction · 0.85
lua_pushbooleanFunction · 0.85
lua_pcallkFunction · 0.85
lua_gettopFunction · 0.85
finishpcallFunction · 0.85

Tested by

no test coverage detected