From c7bd9547529a4957e56c7302c5eaca650258ecdc Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 14 Jul 2024 11:56:04 +0100 Subject: Add more uses of `#no_capture` --- core/encoding/xml/tokenizer.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/encoding/xml/tokenizer.odin') diff --git a/core/encoding/xml/tokenizer.odin b/core/encoding/xml/tokenizer.odin index a2bbaf28e..8a26f1bce 100644 --- a/core/encoding/xml/tokenizer.odin +++ b/core/encoding/xml/tokenizer.odin @@ -17,7 +17,7 @@ import "core:fmt" import "core:unicode" import "core:unicode/utf8" -Error_Handler :: #type proc(pos: Pos, fmt: string, args: ..any) +Error_Handler :: #type proc(pos: Pos, fmt: string, #no_capture args: ..any) Token :: struct { kind: Token_Kind, @@ -112,13 +112,13 @@ offset_to_pos :: proc(t: ^Tokenizer, offset: int) -> Pos { } } -default_error_handler :: proc(pos: Pos, msg: string, args: ..any) { +default_error_handler :: proc(pos: Pos, msg: string, #no_capture args: ..any) { fmt.eprintf("%s(%d:%d) ", pos.file, pos.line, pos.column) fmt.eprintf(msg, ..args) fmt.eprintf("\n") } -error :: proc(t: ^Tokenizer, offset: int, msg: string, args: ..any) { +error :: proc(t: ^Tokenizer, offset: int, msg: string, #no_capture args: ..any) { pos := offset_to_pos(t, offset) if t.err != nil { t.err(pos, msg, ..args) -- cgit v1.2.3