| 803 | } |
| 804 | |
| 805 | static 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 | |
| 813 | bool DFHack::Lua::SafeCall(color_ostream &out, lua_State *L, int nargs, int nres, bool perr) |
| 814 | { |
nothing calls this directly
no test coverage detected