summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2018-08-30 15:01:07 +0200
committerDizzyEggg <jajkodizzy@wp.pl>2018-08-30 15:01:07 +0200
commitbc9fe72c6e85b1930f137ed49c5d2b0c4e4b10de (patch)
tree3dac926becb2309a80e6ec201700953f09bc2ef2 /include/global.h
parent8e5c72766c2efd2d3d4e490232fcd5f6c265fe06 (diff)
Do some pyramid bag
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index ab31e3c5d..0fff11d09 100644
--- a/include/global.h
+++ b/include/global.h
@@ -27,6 +27,13 @@
#define ARRAY_COUNT(array) (size_t)(sizeof(array) / sizeof((array)[0]))
+#define SWAP(a, b, temp) \
+{ \
+ temp = a; \
+ a = b; \
+ b = temp; \
+}
+
// useful math macros
// Converts a number to Q8.8 fixed-point format