| 363 | } |
| 364 | |
| 365 | static int lua_dfhack_print(lua_State *S) |
| 366 | { |
| 367 | std::string str = lua_print_fmt(S); |
| 368 | if (color_ostream *out = Lua::GetOutput(S)) |
| 369 | out->print("{}", str); |
| 370 | else |
| 371 | Core::print("{}", str); |
| 372 | return 0; |
| 373 | } |
| 374 | |
| 375 | static int lua_dfhack_println(lua_State *S) |
| 376 | { |
nothing calls this directly
no test coverage detected