summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2017-01-14 15:17:51 -0800
committerYamaArashi <shadow962@live.com>2017-01-14 15:17:51 -0800
commit53935efc64b9945e49dc932917dc179bdbe58631 (patch)
tree5e63391f05d7bef331c155429495723935004b1b /include/global.h
parent12681346688870e71b1a33dae7e52f9e1302080f (diff)
mostly finish string_util.c
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index 1f7df2ca6..b7038025b 100644
--- a/include/global.h
+++ b/include/global.h
@@ -3,6 +3,22 @@
#include "gba/gba.h"
+// 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
+#define OT_NAME_LENGTH 7
+
+extern u8 gStringVar1[];
+extern u8 gStringVar2[];
+extern u8 gStringVar3[];
+extern u8 gStringVar4[];
+
enum
{
VERSION_SAPPHIRE = 1,