summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index cc8df049f..1bca4c344 100644
--- a/include/global.h
+++ b/include/global.h
@@ -25,6 +25,14 @@
#define INCBIN_S32 {0}
#endif // IDE support
+// Invalid / Out of Bound Placeholder values
+#define INVALID_U8 0xFF
+#define INVALID_U16 0xFFFF
+#define INVALID_U32 0xFFFFFFFF
+#define INVALID_S8 -1
+#define INVALID_S16 -1
+#define INVALID_S32 -1
+
#define ARRAY_COUNT(array) (size_t)(sizeof(array) / sizeof((array)[0]))
#define SWAP(a, b, temp) \