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

Function lua_dfhack_print

library/LuaTools.cpp:365–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365static 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
375static int lua_dfhack_println(lua_State *S)
376{

Callers

nothing calls this directly

Calls 3

lua_print_fmtFunction · 0.85
printFunction · 0.50
printMethod · 0.45

Tested by

no test coverage detected