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/container/small_array/small_array.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/container/small_array/small_array.odin') diff --git a/core/container/small_array/small_array.odin b/core/container/small_array/small_array.odin index b2068469d..a698d965c 100644 --- a/core/container/small_array/small_array.odin +++ b/core/container/small_array/small_array.odin @@ -139,7 +139,7 @@ clear :: proc "contextless" (a: ^$A/Small_Array($N, $T)) { resize(a, 0) } -push_back_elems :: proc "contextless" (a: ^$A/Small_Array($N, $T), items: ..T) { +push_back_elems :: proc "contextless" (a: ^$A/Small_Array($N, $T), #no_capture items: ..T) { n := copy(a.data[a.len:], items[:]) a.len += n } -- cgit v1.2.3