Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSError.h
Go to the documentation of this file.
1#ifndef OSERROR_H
2#define OSERROR_H
3
4#include "dolphin/types.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct OSContext OSContext;
11
13typedef u16 OSError;
14
15#define OS_ERROR_SYSTEM_RESET 0
16#define OS_ERROR_MACHINE_CHECK 1
17#define OS_ERROR_DSI 2
18#define OS_ERROR_ISI 3
19#define OS_ERROR_INTERRUPT 4
20#define OS_ERROR_ALIGNMENT 5
21#define OS_ERROR_PROGRAM 6
22#define OS_ERROR_FLOATING_POINT 7
23#define OS_ERROR_DECREMENTER 8
24#define OS_ERROR_SYSTEM_CALL 9
25#define OS_ERROR_TRACE 10
26#define OS_ERROR_PERFORMANCE_MONITOR 11
27#define OS_ERROR_BREAKPOINT 12
28#define OS_ERROR_RESERVED 13
29#define OS_ERROR_THERMAL_INTERRUPT 14
30#define OS_ERROR_MEMORY_PROTECTION 15
31#define OS_ERROR_FLOATING_POINT_EXCEPTION 16
32
52
54
56// Using this type for the C++ handlers makes stuff not match
58
61
62#ifdef __cplusplus
63};
64#endif
65
66#endif /* OSERROR_H */
static OSContext context
Definition JUTException.cpp:233
void(* OSErrorHandler)(OSError error, OSContext *context, u32, u32)
Definition OSError.h:55
OSException
Definition OSError.h:33
@ EXCEPTION_FLOATING_POINT
Definition OSError.h:41
@ EXCEPTION_ISI
Definition OSError.h:37
@ EXCEPTION_MEMORY_PROTECTION
Definition OSError.h:49
@ EXCEPTION_MACHINE_CHECK
Definition OSError.h:35
@ EXCEPTION_ALIGNMENT
Definition OSError.h:39
@ EXCEPTION_EXTERNAL_INTERRUPT
Definition OSError.h:38
@ EXCEPTION_SYSTEM_CALL
Definition OSError.h:43
@ EXCEPTION_TRACE
Definition OSError.h:44
@ EXCEPTION_PROGRAM
Definition OSError.h:40
@ EXCEPTION_RESERVED
Definition OSError.h:47
@ EXCEPTION_DSI
Definition OSError.h:36
@ EXCEPTION_FLOATING_POINT_EXCEPTION
Definition OSError.h:50
@ EXCEPTION_PERFORMANCE_MONITOR
Definition OSError.h:45
@ EXCEPTION_DECREMENTER
Definition OSError.h:42
@ EXCEPTION_SYSTEM_RESET
Definition OSError.h:34
@ EXCEPTION_BREAKPOINT
Definition OSError.h:46
@ EXCEPTION_THERMAL_INTERRUPT
Definition OSError.h:48
u16 OSError
Definition OSError.h:13
u32 __OSFpscrEnableBits
void __OSUnhandledException(__OSException exception, OSContext *context, u32 dsisr, u32 dar)
Definition OSError.c:124
u8 __OSException
Definition OSError.h:53
OSErrorHandler OSSetErrorHandler(OSError error, OSErrorHandler handler)
Definition OSError.c:58
void(* OSErrorHandlerEx)(OSError error, OSContext *context, u32, u32,...)
Definition OSError.h:57
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition OSContext.h:137
Definition fdlibm.h:73
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8