A lot of refactoring on the PrettyPrint code and the various printf routines.
This commit is contained in:
@@ -395,7 +395,7 @@ eng::string World::probe_lua_expr(int64_t actor_id, std::string_view lua) {
|
||||
if (msg.empty()) {
|
||||
for (int i = top + 1; i <= lua_gettop(L); i++) {
|
||||
LuaSpecial root(i);
|
||||
pprint(LS, root, PrettyPrintOptions(), <hread_prints_);
|
||||
PrettyPrint::Indented().print(LS, root, <hread_prints_);
|
||||
// TODO: this endl is unnecessary if we just printed a newline.
|
||||
lthread_prints_ << std::endl;
|
||||
}
|
||||
@@ -1076,7 +1076,7 @@ void World::run_scheduled_threads() {
|
||||
LuaCoreStack LSCO(CO);
|
||||
if (LS.ckboolean(print)) {
|
||||
for (int i = 1; i <= lua_gettop(CO); i++) {
|
||||
pprint(LSCO, LuaSpecial(i), PrettyPrintOptions(), <hread_prints_);
|
||||
PrettyPrint::Indented().print(LSCO, LuaSpecial(i), <hread_prints_);
|
||||
lthread_prints_ << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user