| 373 | } |
| 374 | |
| 375 | static int lua_dfhack_println(lua_State *S) |
| 376 | { |
| 377 | std::string str = lua_print_fmt(S); |
| 378 | if (color_ostream *out = Lua::GetOutput(S)) |
| 379 | *out << str << std::endl; |
| 380 | else |
| 381 | Core::print("{}\n", str); |
| 382 | return 0; |
| 383 | } |
| 384 | |
| 385 | void dfhack_printerr(lua_State *S, const std::string &str) |
| 386 | { |
nothing calls this directly
no test coverage detected