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/testing/testing.odin | |
| parent | edc793d7c123a38826860ef72684308902a7012c (diff) | |
Add more uses of `#no_capture`
Diffstat (limited to 'core/testing/testing.odin')
| -rw-r--r-- | core/testing/testing.odin | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/testing/testing.odin b/core/testing/testing.odin index 29fe853ef..04dc79095 100644 --- a/core/testing/testing.odin +++ b/core/testing/testing.odin @@ -53,12 +53,12 @@ T :: struct { @(deprecated="prefer `log.error`") -error :: proc(t: ^T, args: ..any, loc := #caller_location) { +error :: proc(t: ^T, #no_capture args: ..any, loc := #caller_location) { pkg_log.error(..args, location = loc) } @(deprecated="prefer `log.errorf`") -errorf :: proc(t: ^T, format: string, args: ..any, loc := #caller_location) { +errorf :: proc(t: ^T, format: string, #no_capture args: ..any, loc := #caller_location) { pkg_log.errorf(format, ..args, location = loc) } @@ -87,12 +87,12 @@ failed :: proc(t: ^T) -> bool { } @(deprecated="prefer `log.info`") -log :: proc(t: ^T, args: ..any, loc := #caller_location) { +log :: proc(t: ^T, #no_capture args: ..any, loc := #caller_location) { pkg_log.info(..args, location = loc) } @(deprecated="prefer `log.infof`") -logf :: proc(t: ^T, format: string, args: ..any, loc := #caller_location) { +logf :: proc(t: ^T, format: string, #no_capture args: ..any, loc := #caller_location) { pkg_log.infof(format, ..args, location = loc) } @@ -121,7 +121,7 @@ expect :: proc(t: ^T, ok: bool, msg: string = "", loc := #caller_location) -> bo return ok } -expectf :: proc(t: ^T, ok: bool, format: string, args: ..any, loc := #caller_location) -> bool { +expectf :: proc(t: ^T, ok: bool, format: string, #no_capture args: ..any, loc := #caller_location) -> bool { if !ok { pkg_log.errorf(format, ..args, location=loc) } |