Void* should never deref and should allow methods to be attached to it.

This commit is contained in:
Christoffer Lerno
2023-10-27 00:10:59 +02:00
parent a0bc03a9f5
commit e17bb5f321
7 changed files with 11 additions and 13 deletions

View File

@@ -136,7 +136,7 @@ macro usz! print_gen(self, x)
$case DString:
return self.write(x.str_view());
$default:
$if $assignable(x, String):
$if $defined((String)x):
return self.write((String)x);
$else
return printf("%s", x);