diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-14 12:19:47 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-14 12:19:47 +0100 |
| commit | 8642d719f0ece3625d535d47b41ff4d35072f47f (patch) | |
| tree | aec3708e44e3fe7085dea40b112aa4db08497f31 /core/container/small_array | |
| parent | 891cf54b5c56bd31bcfdac14f0b72d489999bffc (diff) | |
Imply `#no_capture` to all variadic parameters
Diffstat (limited to 'core/container/small_array')
| -rw-r--r-- | core/container/small_array/small_array.odin | 2 |
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 a698d965c..b2068469d 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), #no_capture items: ..T) { +push_back_elems :: proc "contextless" (a: ^$A/Small_Array($N, $T), items: ..T) { n := copy(a.data[a.len:], items[:]) a.len += n } |