MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaB_pcall

Function luaB_pcall

lib/lua/src/lbaselib.c:472–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470
471
472static int luaB_pcall (lua_State *L) {
473 int status;
474 luaL_checkany(L, 1);
475 lua_pushboolean(L, 1); /* first result if no errors */
476 lua_insert(L, 1); /* put it in place */
477 status = lua_pcallk(L, lua_gettop(L) - 2, LUA_MULTRET, 0, 0, finishpcall);
478 return finishpcall(L, status, 0);
479}
480
481
482/*

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