mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Make ZString print natively with %s.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user