- Use @pool_init() to set up a temp pool on a thread. Only the main thread has implicit temp pool setup.

- `tmem` is now a variable.
This commit is contained in:
Christoffer Lerno
2025-03-21 17:08:53 +01:00
parent fab00f21a6
commit a03d821602
41 changed files with 208 additions and 167 deletions

View File

@@ -18,7 +18,7 @@ fn String breakit(String s, Allocator a)
{
@pool()
{
return inner2("foo".concat(tmem(), s), a);
return inner2("foo".concat(tmem, s), a);
};
}
@@ -52,7 +52,7 @@ fn String inner4(String s, Allocator a)
{
@pool()
{
String y = s.concat(tmem(), "xy**********").copy(a);
String y = s.concat(tmem, "xy**********").copy(a);
return y;
};
}