aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 4cd1d1a..588b968 100644
--- a/src/util.h
+++ b/src/util.h
@@ -23,6 +23,7 @@
#define color_reset "\e[0m"
#define i_swap(A,B) double temp = A; A = B; B = temp;
+#define swap(T,A,B) {T temp = A; A = B; B = temp;}
#define lesser(A,B) ((A)>(B)?(B):(A))
#define inter(V,I) (I * ceil((double)V / I))
#define time_start(name)\