summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-10-26 06:45:00 -0400
committerGitHub <noreply@github.com>2019-10-26 06:45:00 -0400
commiteafb77fbb912d22294f168c1e6e89575b35f0d6c (patch)
tree286f735ca16bd576926197f4f6a80ab6f0c24dc4 /include/global.h
parent7579fc65c12bd46c045d10eb8cd9a2320fd1f3f0 (diff)
parent0ae4d58e985dcc3d265ea30505f439c34eab21ab (diff)
Merge pull request #125 from jiangzhengwenjz/battle
battle (3rd take)
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 5c4501be3..9588deae3 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