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 @@ -655,4 +655,7 @@ extern {
655
655
656
656
#[ cfg( feature="master" ) ]
657
657
pub fn gcc_jit_context_new_sizeof ( ctxt : * mut gcc_jit_context , typ : * mut gcc_jit_type ) -> * mut gcc_jit_rvalue ;
658
+
659
+ #[ cfg( feature="master" ) ]
660
+ pub fn gcc_jit_context_set_output_ident ( ctxt : * mut gcc_jit_context , output_ident : * const c_char ) ;
658
661
}
Original file line number Diff line number Diff line change @@ -194,6 +194,14 @@ impl<'ctx> Context<'ctx> {
194
194
}
195
195
}
196
196
197
+ #[ cfg( feature="master" ) ]
198
+ pub fn set_output_ident ( & self , ident : & str ) {
199
+ let c_str = CString :: new ( ident) . unwrap ( ) ;
200
+ unsafe {
201
+ gccjit_sys:: gcc_jit_context_set_output_ident ( self . ptr , c_str. as_ptr ( ) ) ;
202
+ }
203
+ }
204
+
197
205
pub fn set_debug_info ( & self , value : bool ) {
198
206
unsafe {
199
207
gccjit_sys:: gcc_jit_context_set_bool_option ( self . ptr ,
You can’t perform that action at this time.
0 commit comments