summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-06-21 10:19:41 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-06-21 10:19:41 -0400
commit75b2298d37fa39077f7d5b930c0629ad5064ab84 (patch)
tree070898588e8a0511ecc661f20866bc0b0d05a3d0 /include/global.h
parent9ab2ab3c8068b7194291e58bb7c12befdb1df27a (diff)
Start syncing contest code documentation from Emerald
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index ed74fcf77..018db2725 100644
--- a/include/global.h
+++ b/include/global.h
@@ -36,6 +36,12 @@
#define KANA(txt) _(txt)
#endif
+#define SWAP(x,y,t) {\
+ t = x; \
+ x = y; \
+ y = t; \
+}
+
// Prevent cross-jump optimization.
#define BLOCK_CROSS_JUMP asm("");