summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-06-14 23:07:27 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2017-06-14 23:07:27 -0400
commitbaa9f7f55f64f15f5bff54017537b8e467671b34 (patch)
treebb345f43ac8e5efc15a7c8fb4153df00523efc17 /include/global.h
parentd8f4d3da44d52ac56d93a41edb24cf0a803f5c67 (diff)
Move min/max macros to global.h
Diffstat (limited to 'include/global.h')
-rwxr-xr-x[-rw-r--r--]include/global.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index ba06b3e57..0e7c43437 100644..100755
--- a/include/global.h
+++ b/include/global.h
@@ -25,6 +25,9 @@ fndec\
#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)
+
enum
{
VERSION_SAPPHIRE = 1,