SSBM Decomp
Loading...
Searching...
No Matches
OSError.h
Go to the documentation of this file.
1
#ifndef _DOLPHIN_OSERROR_H_
2
#define _DOLPHIN_OSERROR_H_
3
4
#include <
dolphin/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
extern
OSErrorHandler
OSErrorTable
[15];
31
32
OSErrorHandler
OSSetErrorHandler
(
OSError
error,
OSErrorHandler
handler);
33
34
#ifdef __cplusplus
35
}
36
#endif
37
38
#endif
OSContext.h
OSErrorTable
OSErrorHandler OSErrorTable[15]
OSError
u16 OSError
Definition
OSError.h:10
OSErrorHandler
void(* OSErrorHandler)(OSError error, OSContext *context,...)
Definition
OSError.h:11
OSSetErrorHandler
OSErrorHandler OSSetErrorHandler(OSError error, OSErrorHandler handler)
u16
unsigned short int u16
Definition
types.h:7
OSContext
Definition
OSContext.h:138
extern
dolphin
include
dolphin
os
OSError.h
Generated by
1.15.0