Add more uses of #no_capture

This commit is contained in:
gingerBill
2024-07-14 11:56:04 +01:00
parent edc793d7c1
commit c7bd954752
19 changed files with 64 additions and 64 deletions
+1 -1
View File
@@ -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))
}
+1 -1
View File
@@ -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)
}