summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorpaul <nintendo6496@googlemail.com>2018-10-14 16:36:53 +0200
committerpaul <nintendo6496@googlemail.com>2018-10-14 16:36:53 +0200
commit3037f37cc669bec7580fe2623ce2c6ea1c4ebe76 (patch)
tree5ee0dc775f6a4b6dda46baa8852ef78dd464528e /include/global.h
parent943931f86f50b946145548b0bee9663724e14980 (diff)
parenta2e49c4d5c275b28b6485d404e305a98c935d022 (diff)
merge upstream, fix non-conflict in trade.s
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index ba681d570..8e5fab52c 100644
--- a/include/global.h
+++ b/include/global.h
@@ -32,6 +32,9 @@ char* strcpy(char *dst0, const char *src0);
#define POKEMON_NAME_LENGTH 10
#define OT_NAME_LENGTH 7
+#define min(a, b) ((a) < (b) ? (a) : (b))
+#define max(a, b) ((a) >= (b) ? (a) : (b))
+
// There are many quirks in the source code which have overarching behavioral differences from
// a number of other files. For example, diploma.c seems to declare rodata before each use while
// other files declare out of order and must be at the beginning. There are also a number of
@@ -510,6 +513,7 @@ struct SaveBlock1
/*0x361C*/ struct RamScript ramScript;
/*0x3A08*/ u8 filler3A08[0x44];
/*0x3A4C*/ u8 rivalName[PLAYER_NAME_LENGTH];
+ /*0x3A54*/ u8 filler3A54[0x314];
};
extern struct SaveBlock1* gSaveBlock1Ptr;