diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-14 11:56:04 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-14 11:56:04 +0100 |
| commit | c7bd9547529a4957e56c7302c5eaca650258ecdc (patch) | |
| tree | e533ec892b96f3b842ea79351eb7dc2f7e2964f3 /core/text | |
| parent | edc793d7c123a38826860ef72684308902a7012c (diff) | |
Add more uses of `#no_capture`
Diffstat (limited to 'core/text')
| -rw-r--r-- | core/text/scanner/scanner.odin | 2 | ||||
| -rw-r--r-- | core/text/table/table.odin | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/text/scanner/scanner.odin b/core/text/scanner/scanner.odin index d27c66f24..6eb366b49 100644 --- a/core/text/scanner/scanner.odin +++ b/core/text/scanner/scanner.odin @@ -250,7 +250,7 @@ error :: proc(s: ^Scanner, msg: string) { } } -errorf :: proc(s: ^Scanner, format: string, args: ..any) { +errorf :: proc(s: ^Scanner, format: string, #no_capture args: ..any) { error(s, fmt.tprintf(format, ..args)) } diff --git a/core/text/table/table.odin b/core/text/table/table.odin index 27c99b1f1..4d0baef64 100644 --- a/core/text/table/table.odin +++ b/core/text/table/table.odin @@ -145,7 +145,7 @@ set_cell_value_and_alignment :: proc(tbl: ^Table, row, col: int, value: any, ali cell.alignment = alignment } -format :: proc(tbl: ^Table, _fmt: string, args: ..any) -> string { +format :: proc(tbl: ^Table, _fmt: string, #no_capture args: ..any) -> string { context.allocator = tbl.format_allocator return fmt.aprintf(_fmt, ..args) } |