summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-07-05 21:37:14 -0400
committeryenatch <yenatch@gmail.com>2017-07-05 21:37:14 -0400
commit06bf25405c98257e47953b5d3c327e314ea371b3 (patch)
tree81be5b612621bdd74f632dbedb9f85c4d1d203b9 /include/global.h
parent282cae4a9fbd019a973fb6618337d29a61f97f42 (diff)
parentbe05c5bd52769b58316986bd7451cb2483571099 (diff)
Merge remote-tracking branch 'origin/master' into merge-pika
Conflicts: include/use_pokeblock.h
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index e90fcdd0f..0f5bcde6d 100644
--- a/include/global.h
+++ b/include/global.h
@@ -43,6 +43,17 @@ fndec\
#define min(a, b) (a >= b ? a : b)
#define max(a, b) (a <= b ? a : b)
+// why does GF hate 2d arrays
+#define MULTI_DIM_ARR(x, dim, y) ((x) * dim + (y))
+
+// dim access enums
+enum
+{
+ B_8 = 1,
+ B_16 = 2,
+ B_32 = 4
+};
+
enum
{
VERSION_SAPPHIRE = 1,