diff options
| author | gingerBill <bill@gingerbill.org> | 2024-03-19 17:02:01 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-03-19 17:02:01 +0000 |
| commit | 83dcce9a58c72f9f4e079aae8e06e932773ec8e2 (patch) | |
| tree | 92381999f6d0033b1566bf1f549c74e147d847ed /src/array.cpp | |
| parent | cc62773a05cb6c7a00cfcb916da1b6fdde7de3e8 (diff) | |
| parent | 433109ff52d2db76069273cd53b7aebf6aea9be0 (diff) | |
Merge branch 'master' into orca-dev
Diffstat (limited to 'src/array.cpp')
| -rw-r--r-- | src/array.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/array.cpp b/src/array.cpp index 4583a31a9..ec2c97d0e 100644 --- a/src/array.cpp +++ b/src/array.cpp @@ -52,6 +52,13 @@ template <typename T> gb_internal T *array_end_ptr(Array<T> *array); template <typename T> +gb_internal void array_sort(Array<T> &array, gbCompareProc compare_proc) { + gb_sort_array(array.data, array.count, compare_proc); +} + + + +template <typename T> struct Slice { T *data; isize count; |