Make ZString print natively with %s.

This commit is contained in:
Christoffer Lerno
2023-09-04 22:30:35 +02:00
parent fe0ae4a9aa
commit 53598b8c40

View File

@@ -153,6 +153,10 @@ fn usz! Formatter.out_str(&self, any arg) @private
case FUNC:
return self.out_substr("<function>");
case DISTINCT:
if (arg.type == ZString.typeid)
{
return self.out_substr(((ZString*)arg).as_str());
}
if (arg.type == DString.typeid)
{
return self.out_substr(((DString*)arg).as_str());