diff options
| author | gingerBill <bill@gingerbill.org> | 2024-03-19 15:34:29 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-03-19 15:34:29 +0000 |
| commit | 9a2fc6cf4c8b4434ae45170953b77b3239120fea (patch) | |
| tree | a955d0891bea9269d2ff3483127ed100c176bef3 /src/array.cpp | |
| parent | 8ff788f4fff7504b8b6bca1183a9be98b8765cbc (diff) | |
Serialize errors to make them sortable, deterministic, and generally more control
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; |