File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -621,4 +621,7 @@ extern {
621
621
622
622
#[ cfg( feature="master" ) ]
623
623
pub fn gcc_jit_function_set_personality_function ( func : * mut gcc_jit_function , personality_func : * mut gcc_jit_function ) ;
624
+
625
+ #[ cfg( feature="master" ) ]
626
+ pub fn gcc_jit_set_global_personality_function_name ( name : * const c_char ) ;
624
627
}
Original file line number Diff line number Diff line change @@ -52,3 +52,11 @@ pub use parameter::Parameter;
52
52
pub use function:: FnAttribute ;
53
53
pub use function:: { Function , FunctionType } ;
54
54
pub use block:: { Block , BinaryOp , UnaryOp , ComparisonOp } ;
55
+
56
+ #[ cfg( feature="master" ) ]
57
+ pub fn set_global_personality_function_name ( name : & ' static [ u8 ] ) {
58
+ debug_assert ! ( name. ends_with( & [ b'\0' ] ) , "Expecting a NUL-terminated C string" ) ;
59
+ unsafe {
60
+ gccjit_sys:: gcc_jit_set_global_personality_function_name ( name. as_ptr ( ) as * const _ ) ;
61
+ }
62
+ }
You can’t perform that action at this time.
0 commit comments