Skip to content

Commit

Permalink
Remove #caller_location from certain calls in `core:container/small…
Browse files Browse the repository at this point in the history
…_array`
  • Loading branch information
gingerBill committed Apr 4, 2022
1 parent d10d547 commit 2289b7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/container/small_array/small_array.odin
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ slice :: proc(a: ^$A/Small_Array($N, $T)) -> []T {
}


get :: proc(a: $A/Small_Array($N, $T), index: int, loc := #caller_location) -> T {
get :: proc(a: $A/Small_Array($N, $T), index: int) -> T {
return a.data[index]
}
get_ptr :: proc(a: $A/Small_Array($N, $T), index: int, loc := #caller_location) -> ^T {
get_ptr :: proc(a: ^$A/Small_Array($N, $T), index: int) -> ^T {
return &a.data[index]
}

set :: proc(a: ^$A/Small_Array($N, $T), index: int, item: T, loc := #caller_location) {
set :: proc(a: ^$A/Small_Array($N, $T), index: int, item: T) {
a.data[index] = item
}

Expand Down

0 comments on commit 2289b7a

Please sign in to comment.