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