summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-10-18 06:16:11 +0800
committerjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-10-18 06:16:11 +0800
commit88ad62c3f3ba977146d7f997cf23e612b31d2d69 (patch)
treeb78f80c9fd00f22de38bf369d8a4a7a80ea2eb90 /include/global.h
parent1862f70466d6047d1585fe2487de5aa4fa1e8324 (diff)
thru HandleEndTurn_MonFled
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 5ddf9a0a8..4ca2538b2 100644
--- a/include/global.h
+++ b/include/global.h
@@ -32,6 +32,13 @@
// GF's lingo
#define NELEMS ARRAY_COUNT
+#define SWAP(a, b, temp) \
+{ \
+ temp = a; \
+ a = b; \
+ b = temp; \
+}
+
// useful math macros
// Converts a number to Q8.8 fixed-point format