Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
types.h
Go to the documentation of this file.
1#ifndef _DOLPHIN_TYPES_H_
2#define _DOLPHIN_TYPES_H_
3
4typedef signed char s8;
5typedef unsigned char u8;
6typedef signed short int s16;
7typedef unsigned short int u16;
8typedef signed long s32;
9typedef unsigned long u32;
10typedef signed long long int s64;
11typedef unsigned long long int u64;
12
13typedef volatile u8 vu8;
14typedef volatile u16 vu16;
15typedef volatile u32 vu32;
16typedef volatile u64 vu64;
17typedef volatile s8 vs8;
18typedef volatile s16 vs16;
19typedef volatile s32 vs32;
20typedef volatile s64 vs64;
21
22typedef float f32;
23typedef double f64;
24
25typedef volatile f32 vf32;
26typedef volatile f64 vf64;
27
28typedef char *Ptr;
29
30typedef int BOOL;
31
32typedef 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#error unknown compiler
44#endif
45
46#define ATTRIBUTE_ALIGN(num) __attribute__((aligned(num)))
47
48#ifndef NULL
49#ifdef __cplusplus
50#define NULL 0
51#else
52#define NULL ((void*)0)
53#endif
54#endif
55
56#include "stddef.h"
57
58#endif
int BOOL
Definition types.h:30
volatile s8 vs8
Definition types.h:17
signed char s8
Definition types.h:4
volatile u8 vu8
Definition types.h:13
unsigned long u32
Definition types.h:9
volatile s64 vs64
Definition types.h:20
signed short int s16
Definition types.h:6
signed long long int s64
Definition types.h:10
float f32
Definition types.h:22
volatile u16 vu16
Definition types.h:14
volatile s32 vs32
Definition types.h:19
volatile s16 vs16
Definition types.h:18
unsigned int uint
Definition types.h:32
double f64
Definition types.h:23
volatile f64 vf64
Definition types.h:26
unsigned short int u16
Definition types.h:7
char * Ptr
Definition types.h:28
volatile u32 vu32
Definition types.h:15
unsigned long long int u64
Definition types.h:11
volatile u64 vu64
Definition types.h:16
volatile f32 vf32
Definition types.h:25
signed long s32
Definition types.h:8
unsigned char u8
Definition types.h:5