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 _REVOLUTION_OSERROR_H_
2
#define _REVOLUTION_OSERROR_H_
3
4
#include <
revolution/os/OSContext.h
>
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
typedef
u16
OSError
;
11
typedef
void (*
OSErrorHandler
)(
OSError
error,
OSContext
*
context
, ...);
12
13
#define OS_ERROR_SYSTEM_RESET 0
14
#define OS_ERROR_MACHINE_CHECK 1
15
#define OS_ERROR_DSI 2
16
#define OS_ERROR_ISI 3
17
#define OS_ERROR_EXTERNAL_INTERRUPT 4
18
#define OS_ERROR_ALIGNMENT 5
19
#define OS_ERROR_PROGRAM 6
20
#define OS_ERROR_FLOATING_POINT 7
21
#define OS_ERROR_DECREMENTER 8
22
#define OS_ERROR_SYSTEM_CALL 9
23
#define OS_ERROR_TRACE 10
24
#define OS_ERROR_PERFORMACE_MONITOR 11
25
#define OS_ERROR_BREAKPOINT 12
26
#define OS_ERROR_SYSTEM_INTERRUPT 13
27
#define OS_ERROR_THERMAL_INTERRUPT 14
28
#define OS_ERROR_MAX (OS_ERROR_THERMAL_INTERRUPT + 1)
29
30
OSErrorHandler
OSSetErrorHandler
(
OSError
error,
OSErrorHandler
handler);
31
extern
u32
__OSFpscrEnableBits
;
32
extern
OSErrorHandler
__OSErrorTable
[17];
33
34
#ifdef __cplusplus
35
}
36
#endif
37
38
#endif
context
static OSContext context
Definition
JUTException.cpp:157
OSError
u16 OSError
Definition
OSError.h:13
u32
unsigned long u32
Definition
types.h:12
u16
unsigned short int u16
Definition
types.h:10
OSContext.h
__OSErrorTable
OSErrorHandler __OSErrorTable[17]
Definition
OSError.c:7
OSErrorHandler
void(* OSErrorHandler)(OSError error, OSContext *context,...)
Definition
OSError.h:11
__OSFpscrEnableBits
u32 __OSFpscrEnableBits
Definition
OSError.c:10
OSSetErrorHandler
OSErrorHandler OSSetErrorHandler(OSError error, OSErrorHandler handler)
Definition
OSError.c:42
OSContext
Definition
OSContext.h:140
include
revolution
os
OSError.h
Generated by
1.12.0