Serialize errors to make them sortable, deterministic, and generally more control

This commit is contained in:
gingerBill
2024-03-19 15:34:29 +00:00
parent 8ff788f4ff
commit 9a2fc6cf4c
12 changed files with 159 additions and 94 deletions

View File

@@ -51,6 +51,13 @@ template <typename T> gb_internal void array_copy(Array<T> *array, Array<T> cons
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;