summaryrefslogtreecommitdiff
path: root/include/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h
new file mode 100644
index 0000000..c5322e5
--- /dev/null
+++ b/include/types.h
@@ -0,0 +1,30 @@
+// This file was taken from the Metroid Prime decompilation project.
+// https://github.com/PrimeDecomp/prime/blob/main/include/types.h
+#ifndef _TYPES
+#define _TYPES
+
+#ifdef __cplusplus
+#include "static_assert.hpp"
+
+extern "C" {
+#endif
+
+#include <dolphin/types.h>
+
+// Dolphin u32 is unsigned long
+typedef unsigned int uint;
+typedef unsigned short ushort;
+typedef unsigned char uchar;
+
+// Pointer to unknown, to be determined at a later date.
+typedef void* unkptr;
+
+#define SBig(x) x
+
+#define ARRAY_SIZE(arr) static_cast< int >(sizeof(arr) / sizeof(arr[0]))
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // _TYPES