Fix util::ostringstream, fix pretty-printing, stub out new globals

This commit is contained in:
2023-03-05 01:51:25 -05:00
parent db234c2934
commit 86a27ef2d4
13 changed files with 455 additions and 282 deletions

View File

@@ -57,7 +57,9 @@ eng::string World::tangible_pprint(int64_t id) const {
if (LS.istable(tan)) {
LS.getmetatable(meta, tan);
LS.clearmetatable(tan);
pprint(LS, tan, false, &oss);
PrettyPrintOptions opts;
opts.indent = false;
pprint(LS, tan, opts, &oss);
LS.setmetatable(tan, meta);
} else {
oss << "<no such tangible: " << id << ">";