Changeset View
Changeset View
Standalone View
Standalone View
include/unwind.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
struct _Unwind_Context; /* opaque data-structure */ | struct _Unwind_Context; /* opaque data-structure */ | ||||
struct _Unwind_Exception; /* forward-declaration */ | struct _Unwind_Exception; /* forward-declaration */ | ||||
typedef void (*_Unwind_Exception_Cleanup_Fn) (_Unwind_Reason_Code, | typedef void (*_Unwind_Exception_Cleanup_Fn) (_Unwind_Reason_Code, | ||||
struct _Unwind_Exception *); | struct _Unwind_Exception *); | ||||
typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn) (int, _Unwind_Action, | typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn) (int, _Unwind_Action, | ||||
__int64_t, | __uint64_t, | ||||
struct _Unwind_Exception *, | struct _Unwind_Exception *, | ||||
struct _Unwind_Context *, | struct _Unwind_Context *, | ||||
void *); | void *); | ||||
/* The C++ ABI requires exception_class, private_1, and private_2 to | /* The C++ ABI requires exception_class, private_1, and private_2 to | ||||
be of type uint64 and the entire structure to be | be of type uint64 and the entire structure to be | ||||
double-word-aligned, but that seems a bit overly IA-64-specific. | double-word-aligned, but that seems a bit overly IA-64-specific. | ||||
Using "unsigned long" instead should give us the desired effect on | Using "unsigned long" instead should give us the desired effect on | ||||
IA-64, while being more general. */ | IA-64, while being more general. */ | ||||
struct _Unwind_Exception | struct _Unwind_Exception | ||||
{ | { | ||||
__int64_t exception_class; | __uint64_t exception_class; | ||||
_Unwind_Exception_Cleanup_Fn exception_cleanup; | _Unwind_Exception_Cleanup_Fn exception_cleanup; | ||||
unsigned long private_1; | unsigned long private_1; | ||||
unsigned long private_2; | unsigned long private_2; | ||||
}; | }; | ||||
extern _Unwind_Reason_Code _Unwind_RaiseException (struct _Unwind_Exception *); | extern _Unwind_Reason_Code _Unwind_RaiseException (struct _Unwind_Exception *); | ||||
extern _Unwind_Reason_Code _Unwind_ForcedUnwind (struct _Unwind_Exception *, | extern _Unwind_Reason_Code _Unwind_ForcedUnwind (struct _Unwind_Exception *, | ||||
_Unwind_Stop_Fn, void *); | _Unwind_Stop_Fn, void *); | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |