summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-10-23 15:50:13 -0700
committerYamaArashi <shadow962@live.com>2016-10-23 15:50:13 -0700
commit854cb120dc3a01c00c0b92581521e2d574219428 (patch)
tree73bc28b0aa8a07be1242e93c3230010e475daefa /include/global.h
parent145369b7ab46cf057789dd28eb817da38e0e7d56 (diff)
add asm_comment macro
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index 95fc35545..a8523151a 100644
--- a/include/global.h
+++ b/include/global.h
@@ -10,6 +10,9 @@
// Prevent cross-jump optimization.
#define BLOCK_CROSS_JUMP asm("");
+// to help in decompiling
+#define asm_comment(x) asm volatile("@ -- " x " -- ")
+
#define ARRAY_COUNT(array) (sizeof(array) / sizeof((array)[0]))
#define POKEMON_NAME_LENGTH 10