Files

31 lines
524 B
C
Raw Permalink Normal View History

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