summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/global.h b/include/global.h
index ce58c02f4..0f5bcde6d 100644
--- a/include/global.h
+++ b/include/global.h
@@ -44,7 +44,15 @@ fndec\
#define max(a, b) (a <= b ? a : b)
// why does GF hate 2d arrays
-#define ARR_2D(x, y) ((x) * 2 + (y))
+#define MULTI_DIM_ARR(x, dim, y) ((x) * dim + (y))
+
+// dim access enums
+enum
+{
+ B_8 = 1,
+ B_16 = 2,
+ B_32 = 4
+};
enum
{