-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpersonality-c.c
33 lines (28 loc) · 1.65 KB
/
personality-c.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <stdint.h>
#include <unwind.h>
typedef _Unwind_Reason_Code (*__personality_routine)(
int version, _Unwind_Action actions, uint64_t exception_class,
struct _Unwind_Exception *exception_object,
struct _Unwind_Context *context);
_Unwind_Reason_Code __gcc_personality_v0(int version, _Unwind_Action actions,
uint64_t exception_class,
struct _Unwind_Exception *ue_header,
struct _Unwind_Context *context);
_Unwind_Reason_Code __cilk_personality_internal(
__personality_routine std_lib_personality, int version,
_Unwind_Action actions, uint64_t exception_class,
struct _Unwind_Exception *ue_header, struct _Unwind_Context *context);
_Unwind_Reason_Code __cilk_personality_c_v0(int version, _Unwind_Action actions,
uint64_t exception_class,
struct _Unwind_Exception *ue_header,
struct _Unwind_Context *context) {
return __cilk_personality_internal(__gcc_personality_v0, version, actions,
exception_class, ue_header, context);
}
_Unwind_Reason_Code __cilk_personality_v0(int version, _Unwind_Action actions,
uint64_t exception_class,
struct _Unwind_Exception *ue_header,
struct _Unwind_Context *context) {
return __cilk_personality_c_v0(version, actions, exception_class, ue_header,
context);
}