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

Function dfhack_safecall

library/LuaTools.cpp:805–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803}
804
805static int dfhack_safecall (lua_State *L)
806{
807 luaL_checkany(L, 1);
808 lua_pushcfunction(L, dfhack_onerror);
809 lua_insert(L, 1);
810 return Lua::TailPCallK<safecall_cont>(L, lua_gettop(L) - 2, LUA_MULTRET, 1, 0);
811}
812
813bool DFHack::Lua::SafeCall(color_ostream &out, lua_State *L, int nargs, int nres, bool perr)
814{

Callers

nothing calls this directly

Calls 2

luaL_checkanyFunction · 0.85
lua_gettopFunction · 0.85

Tested by

no test coverage detected