mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- 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:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user