aboutsummaryrefslogtreecommitdiff
path: root/core/container/small_array
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-07-14 11:56:04 +0100
committergingerBill <bill@gingerbill.org>2024-07-14 11:56:04 +0100
commitc7bd9547529a4957e56c7302c5eaca650258ecdc (patch)
treee533ec892b96f3b842ea79351eb7dc2f7e2964f3 /core/container/small_array
parentedc793d7c123a38826860ef72684308902a7012c (diff)
Add more uses of `#no_capture`
Diffstat (limited to 'core/container/small_array')
-rw-r--r--core/container/small_array/small_array.odin2
1 files changed, 1 insertions, 1 deletions
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
}