| 972 | } |
| 973 | |
| 974 | int DFHack::Lua::SafeResume(color_ostream &out, lua_State *from, lua_State *thread, int nargs, int nres, bool perr) |
| 975 | { |
| 976 | AssertCoreSuspend(from); |
| 977 | |
| 978 | color_ostream *cur_out = Lua::GetOutput(from); |
| 979 | set_dfhack_output(from, &out); |
| 980 | |
| 981 | int rv = resume_helper(from, thread, nargs, nres); |
| 982 | |
| 983 | if (!Lua::IsSuccess(rv) && perr) |
| 984 | report_error(from, &out, true); |
| 985 | |
| 986 | set_dfhack_output(from, cur_out); |
| 987 | |
| 988 | return rv; |
| 989 | } |
| 990 | |
| 991 | int DFHack::Lua::SafeResume(color_ostream &out, lua_State *from, int nargs, int nres, bool perr) |
| 992 | { |
nothing calls this directly
no test coverage detected