Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1
#ifndef _DOLPHIN_TYPES_H_
2
#define _DOLPHIN_TYPES_H_
3
4
#ifdef __REVOLUTION_SDK__
5
#include <
revolution/types.h
>
6
#else
7
typedef
signed
char
s8
;
8
typedef
unsigned
char
u8
;
9
typedef
signed
short
int
s16
;
10
typedef
unsigned
short
int
u16
;
11
typedef
signed
long
s32
;
12
typedef
unsigned
long
u32
;
13
typedef
signed
long
long
int
s64
;
14
typedef
unsigned
long
long
int
u64
;
15
16
typedef
volatile
u8
vu8
;
17
typedef
volatile
u16
vu16
;
18
typedef
volatile
u32
vu32
;
19
typedef
volatile
u64
vu64
;
20
typedef
volatile
s8
vs8
;
21
typedef
volatile
s16
vs16
;
22
typedef
volatile
s32
vs32
;
23
typedef
volatile
s64
vs64
;
24
25
typedef
float
f32
;
26
typedef
double
f64
;
27
28
typedef
volatile
f32
vf32
;
29
typedef
volatile
f64
vf64
;
30
31
typedef
char
*
Ptr
;
32
33
typedef
int
BOOL
;
34
35
typedef
unsigned
int
uint
;
36
37
#define FALSE 0
38
#define TRUE 1
39
40
#if defined(__MWERKS__)
41
#define AT_ADDRESS(addr) : (addr)
42
#elif defined(__GNUC__)
43
//#define AT_ADDRESS(addr) __attribute__((address((addr))))
44
#define AT_ADDRESS(addr)
// was removed in GCC. define in linker script instead.
45
#else
46
#define AT_ADDRESS(addr)
47
#endif
48
49
#ifndef ATTRIBUTE_ALIGN
50
#if defined(__MWERKS__) || defined(__GNUC__)
51
#define ATTRIBUTE_ALIGN(num) __attribute__((aligned(num)))
52
#elif defined(_MSC_VER)
53
#define ATTRIBUTE_ALIGN(num)
54
#else
55
#error unknown compiler
56
#endif
57
#endif
58
59
#ifndef DECL_WEAK
60
#if defined(__MWERKS__)
61
#define DECL_WEAK __declspec(weak)
62
#elif defined(__GNUC__)
63
#define DECL_WEAK __attribute__((weak))
64
#elif defined(_MSC_VER)
65
#define DECL_WEAK
66
#else
67
#error unknown compiler
68
#endif
69
#endif
70
71
#ifndef NULL
72
#ifdef __cplusplus
73
#define NULL 0
74
#else
75
#define NULL ((void*)0)
76
#endif
77
#endif
78
79
#ifdef __MWERKS__
80
#define __REGISTER register
81
#else
82
#define __REGISTER
83
#endif
84
85
#include <
stddef.h
>
86
87
#endif
88
#endif
BOOL
int BOOL
Definition
types.h:33
vs8
volatile s8 vs8
Definition
types.h:20
s8
signed char s8
Definition
types.h:7
vu8
volatile u8 vu8
Definition
types.h:16
u32
unsigned long u32
Definition
types.h:12
vs64
volatile s64 vs64
Definition
types.h:23
s16
signed short int s16
Definition
types.h:9
s64
signed long long int s64
Definition
types.h:13
f32
float f32
Definition
types.h:25
vu16
volatile u16 vu16
Definition
types.h:17
vs32
volatile s32 vs32
Definition
types.h:22
vs16
volatile s16 vs16
Definition
types.h:21
uint
unsigned int uint
Definition
types.h:35
f64
double f64
Definition
types.h:26
vf64
volatile f64 vf64
Definition
types.h:29
u16
unsigned short int u16
Definition
types.h:10
vu32
volatile u32 vu32
Definition
types.h:18
u64
unsigned long long int u64
Definition
types.h:14
vu64
volatile u64 vu64
Definition
types.h:19
vf32
volatile f32 vf32
Definition
types.h:28
s32
signed long s32
Definition
types.h:11
u8
unsigned char u8
Definition
types.h:8
types.h
Ptr
char * Ptr
Definition
types.h:28
stddef.h
include
dolphin
types.h
Generated by
1.12.0