2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _TYPES
|
|
|
|
#define _TYPES
|
2022-03-23 21:22:48 +00:00
|
|
|
|
2022-04-04 14:22:31 +00:00
|
|
|
#ifdef __cplusplus
|
2022-08-13 01:26:00 +00:00
|
|
|
#include "static_assert.hpp"
|
|
|
|
|
2022-04-04 14:22:31 +00:00
|
|
|
extern "C" {
|
|
|
|
#endif
|
2022-03-23 21:22:48 +00:00
|
|
|
|
2022-09-01 00:22:20 +00:00
|
|
|
#include <dolphin/types.h>
|
2022-04-30 08:32:00 +00:00
|
|
|
|
2022-09-05 04:01:13 +00:00
|
|
|
// Dolphin u32 is unsigned long
|
|
|
|
typedef unsigned int uint;
|
2022-10-09 05:37:23 +00:00
|
|
|
typedef unsigned short ushort;
|
2022-09-14 05:24:41 +00:00
|
|
|
typedef unsigned char uchar;
|
2022-09-05 04:01:13 +00:00
|
|
|
|
2022-03-23 21:22:48 +00:00
|
|
|
// Pointer to unknown, to be determined at a later date.
|
|
|
|
typedef void* unkptr;
|
|
|
|
|
2022-09-05 04:00:04 +00:00
|
|
|
#define SBig(x) x
|
|
|
|
|
2022-11-30 01:56:37 +00:00
|
|
|
#define ARRAY_SIZE(arr) static_cast< int >(sizeof(arr) / sizeof(arr[0]))
|
|
|
|
|
2022-04-04 14:22:31 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2022-03-23 21:22:48 +00:00
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _TYPES
|