MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_dfhack_println

Function lua_dfhack_println

library/LuaTools.cpp:375–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375static 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
385void dfhack_printerr(lua_State *S, const std::string &str)
386{

Callers

nothing calls this directly

Calls 2

lua_print_fmtFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected