diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-14 12:19:47 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-14 12:19:47 +0100 |
| commit | 8642d719f0ece3625d535d47b41ff4d35072f47f (patch) | |
| tree | aec3708e44e3fe7085dea40b112aa4db08497f31 /core/text | |
| parent | 891cf54b5c56bd31bcfdac14f0b72d489999bffc (diff) | |
Imply `#no_capture` to all variadic parameters
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 6eb366b49..d27c66f24 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, #no_capture args: ..any) { +errorf :: proc(s: ^Scanner, format: string, args: ..any) { error(s, fmt.tprintf(format, ..args)) } diff --git a/core/text/table/table.odin b/core/text/table/table.odin index 4d0baef64..27c99b1f1 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, #no_capture args: ..any) -> string { +format :: proc(tbl: ^Table, _fmt: string, args: ..any) -> string { context.allocator = tbl.format_allocator return fmt.aprintf(_fmt, ..args) } |