MCPcopy Create free account
hub / github.com/DFHack/dfhack / safecall_cont

Function safecall_cont

library/LuaTools.cpp:794–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792
793namespace {
794 int safecall_cont(lua_State *L, int status, lua_KContext)
795 {
796 bool success = do_finish_pcall(L, Lua::IsSuccess(status));
797
798 if (!success)
799 report_error(L);
800
801 return lua_gettop(L);
802 }
803}
804
805static int dfhack_safecall (lua_State *L)

Callers

nothing calls this directly

Calls 4

do_finish_pcallFunction · 0.85
IsSuccessFunction · 0.85
report_errorFunction · 0.85
lua_gettopFunction · 0.85

Tested by

no test coverage detected