| 383 | } |
| 384 | |
| 385 | void dfhack_printerr(lua_State *S, const std::string &str) |
| 386 | { |
| 387 | if (color_ostream *out = Lua::GetOutput(S)) |
| 388 | out->printerr("{}\n", str); |
| 389 | else |
| 390 | Core::printerr("{}\n", str); |
| 391 | } |
| 392 | |
| 393 | static int lua_dfhack_printerr(lua_State *S) |
| 394 | { |
no test coverage detected