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
7typedef signed char s8;
8typedef unsigned char u8;
9typedef signed short int s16;
10typedef unsigned short int u16;
11typedef signed long s32;
12typedef unsigned long u32;
13typedef signed long long int s64;
14typedef unsigned long long int u64;
15
16typedef volatile u8 vu8;
17typedef volatile u16 vu16;
18typedef volatile u32 vu32;
19typedef volatile u64 vu64;
20typedef volatile s8 vs8;
21typedef volatile s16 vs16;
22typedef volatile s32 vs32;
23typedef volatile s64 vs64;
24
25typedef float f32;
26typedef double f64;
27
28typedef volatile f32 vf32;
29typedef volatile f64 vf64;
30
31typedef char *Ptr;
32
33typedef int BOOL;
34
35typedef 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
int BOOL
Definition types.h:33
volatile s8 vs8
Definition types.h:20
signed char s8
Definition types.h:7
volatile u8 vu8
Definition types.h:16
unsigned long u32
Definition types.h:12
volatile s64 vs64
Definition types.h:23
signed short int s16
Definition types.h:9
signed long long int s64
Definition types.h:13
float f32
Definition types.h:25
volatile u16 vu16
Definition types.h:17
volatile s32 vs32
Definition types.h:22
volatile s16 vs16
Definition types.h:21
unsigned int uint
Definition types.h:35
double f64
Definition types.h:26
volatile f64 vf64
Definition types.h:29
unsigned short int u16
Definition types.h:10
volatile u32 vu32
Definition types.h:18
unsigned long long int u64
Definition types.h:14
volatile u64 vu64
Definition types.h:19
volatile f32 vf32
Definition types.h:28
signed long s32
Definition types.h:11
unsigned char u8
Definition types.h:8
char * Ptr
Definition types.h:28