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

Function luaB_xpcall

third-party/lua-5.2.4/src/lbaselib.c:398–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396
397
398static int luaB_xpcall (lua_State *L) {
399 int status;
400 int n = lua_gettop(L);
401 luaL_argcheck(L, n >= 2, 2, "value expected");
402 lua_pushvalue(L, 1); /* exchange function... */
403 lua_copy(L, 2, 1); /* ...and error handler */
404 lua_replace(L, 2);
405 status = lua_pcallk(L, n - 2, LUA_MULTRET, 1, 0, pcallcont);
406 return finishpcall(L, (status == LUA_OK));
407}
408
409
410static int luaB_tostring (lua_State *L) {

Callers

nothing calls this directly

Calls 6

lua_gettopFunction · 0.70
lua_pushvalueFunction · 0.70
lua_copyFunction · 0.70
lua_replaceFunction · 0.70
lua_pcallkFunction · 0.70
finishpcallFunction · 0.70

Tested by

no test coverage detected