wut  v1.5.0
Wii U Toolchain
exception.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "context.h"
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef BOOL (*OSExceptionCallbackFn)(OSContext *context);
16 
17 typedef enum OSExceptionMode
18 {
25 
26 typedef enum OSExceptionType
27 {
44 
47  OSExceptionCallbackFn callback);
48 
51  OSExceptionType exceptionType,
52  OSExceptionCallbackFn callback);
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
OSExceptionCallbackFn OSSetExceptionCallback(OSExceptionType exceptionType, OSExceptionCallbackFn callback)
OSExceptionType
Definition: exception.h:27
OSExceptionCallbackFn OSSetExceptionCallbackEx(OSExceptionMode mode, OSExceptionType exceptionType, OSExceptionCallbackFn callback)
OSExceptionMode
Definition: exception.h:18
BOOL(* OSExceptionCallbackFn)(OSContext *context)
Definition: exception.h:15
@ OS_EXCEPTION_TYPE_ICI
Definition: exception.h:42
@ OS_EXCEPTION_TYPE_SYSTEM_INTERRUPT
Definition: exception.h:41
@ OS_EXCEPTION_TYPE_ISI
Definition: exception.h:31
@ OS_EXCEPTION_TYPE_BREAKPOINT
Definition: exception.h:40
@ OS_EXCEPTION_TYPE_SYSTEM_RESET
Definition: exception.h:28
@ OS_EXCEPTION_TYPE_MACHINE_CHECK
Definition: exception.h:29
@ OS_EXCEPTION_TYPE_ALIGNMENT
Definition: exception.h:33
@ OS_EXCEPTION_TYPE_TRACE
Definition: exception.h:38
@ OS_EXCEPTION_TYPE_DECREMENTER
Definition: exception.h:36
@ OS_EXCEPTION_TYPE_PERFORMANCE_MONITOR
Definition: exception.h:39
@ OS_EXCEPTION_TYPE_FLOATING_POINT
Definition: exception.h:35
@ OS_EXCEPTION_TYPE_DSI
Definition: exception.h:30
@ OS_EXCEPTION_TYPE_SYSTEM_CALL
Definition: exception.h:37
@ OS_EXCEPTION_TYPE_EXTERNAL_INTERRUPT
Definition: exception.h:32
@ OS_EXCEPTION_TYPE_PROGRAM
Definition: exception.h:34
@ OS_EXCEPTION_MODE_GLOBAL_ALL_CORES
Definition: exception.h:23
@ OS_EXCEPTION_MODE_THREAD
Definition: exception.h:20
@ OS_EXCEPTION_MODE_SYSTEM
Definition: exception.h:19
@ OS_EXCEPTION_MODE_THREAD_ALL_CORES
Definition: exception.h:22
@ OS_EXCEPTION_MODE_GLOBAL
Definition: exception.h:21
int32_t BOOL
Definition: wut_types.h:7