aboutsummaryrefslogtreecommitdiff
path: root/sort.h
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-12-28 20:41:05 +0800
committerMistivia <i@mistivia.com>2025-12-28 20:41:05 +0800
commitb96da8398fdfb34e3ee35d00060291154481453c (patch)
tree3ac5ae64590381c88fca192fe81cce6c5c6fdf6e /sort.h
parent86f6498768bd40c029504cdd5e711aa567248cb4 (diff)
def as for tree map
Diffstat (limited to 'sort.h')
-rw-r--r--sort.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sort.h b/sort.h
index 9266093..dc78ee8 100644
--- a/sort.h
+++ b/sort.h
@@ -10,7 +10,7 @@
void T##_qsort(T* arr, int n);
#define QSORT_IMPL(T) \
- void T##_qsort_swap(T* arr, int lhs, int rhs) { \
+ static inline void T##_qsort_swap(T* arr, int lhs, int rhs) { \
if (lhs == rhs) return; \
T buf; \
buf = arr[lhs]; \