summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorcamthesaxman <cameronghall@cox.net>2017-07-07 16:54:14 -0500
committercamthesaxman <cameronghall@cox.net>2017-07-07 16:54:14 -0500
commitf719abf104e304ed2f886a413d1132a75e3379b1 (patch)
tree352be6d36f1db3f697394bc193adb7fa8142be71 /include/global.h
parent2d604191592fbac2618d4a626f61ff1423cac828 (diff)
parentbd4a6520eaaaac186b6b26557305be8939a7ea2a (diff)
fix merge conflicts
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,