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:
@@ -25,8 +25,8 @@ fn char[]? decode(Allocator allocator, char[] code)
|
||||
return data[:decode_bytes(code, data)!];
|
||||
}
|
||||
|
||||
fn String tencode(char[] code) @inline => encode(tmem(), code);
|
||||
fn char[]? tdecode(char[] code) @inline => decode(tmem(), code);
|
||||
fn String tencode(char[] code) @inline => encode(tmem, code);
|
||||
fn char[]? tdecode(char[] code) @inline => decode(tmem, code);
|
||||
|
||||
|
||||
<*
|
||||
|
||||
Reference in New Issue
Block a user