List no longer uses a temp allocator by default. Incorrect check in the temp allocator removed. Added DString.

This commit is contained in:
Christoffer Lerno
2023-03-05 23:14:16 +01:00
parent 6ac99ed83c
commit d1626ada6f
8 changed files with 381 additions and 7 deletions

View File

@@ -57,6 +57,8 @@ macro void print(x)
catch(stdout().print(x));
$case ZString:
catch(stdout().print(x.as_str()));
$case DString:
catch(stdout().print(x.str()));
$case VarString:
catch(stdout().print(x.str()));
$default:
@@ -76,6 +78,8 @@ macro void printn(x = "")
catch(stdout().printn(x));
$case ZString:
catch(stdout().printn(x.as_str()));
$case DString:
catch(stdout().printn(x.str()));
$case VarString:
catch(stdout().printn(x.str()));
$default: