File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -658,6 +658,9 @@ extern {
658
658
#[ cfg( feature="master" ) ]
659
659
pub fn gcc_jit_target_info_supports_128bit_int ( info : * mut gcc_jit_target_info ) -> c_int ;
660
660
661
+ #[ cfg( feature="master" ) ]
662
+ pub fn gcc_jit_target_info_supports_target_dependent_type ( info : * mut gcc_jit_target_info , ty : gcc_jit_types ) -> c_int ;
663
+
661
664
#[ cfg( feature="master" ) ]
662
665
pub fn gcc_jit_context_new_sizeof ( ctxt : * mut gcc_jit_context , typ : * mut gcc_jit_type ) -> * mut gcc_jit_rvalue ;
663
666
Original file line number Diff line number Diff line change @@ -1339,7 +1339,7 @@ pub enum CType {
1339
1339
}
1340
1340
1341
1341
impl CType {
1342
- fn to_sys ( self ) -> gccjit_sys:: gcc_jit_types {
1342
+ pub ( crate ) fn to_sys ( self ) -> gccjit_sys:: gcc_jit_types {
1343
1343
use gccjit_sys:: gcc_jit_types:: * ;
1344
1344
use self :: CType :: * ;
1345
1345
Original file line number Diff line number Diff line change
1
+ use context:: CType ;
1
2
use std:: { ffi:: { CStr , CString } , fmt} ;
2
3
3
4
pub struct TargetInfo {
@@ -40,6 +41,13 @@ impl TargetInfo {
40
41
gccjit_sys:: gcc_jit_target_info_supports_128bit_int ( self . ptr ) != 0
41
42
}
42
43
}
44
+
45
+ #[ cfg( feature="master" ) ]
46
+ pub fn supports_target_dependent_type ( & self , c_type : CType ) -> bool {
47
+ unsafe {
48
+ gccjit_sys:: gcc_jit_target_info_supports_target_dependent_type ( self . ptr , c_type. to_sys ( ) ) != 0
49
+ }
50
+ }
43
51
}
44
52
45
53
impl Drop for TargetInfo {
You can’t perform that action at this time.
0 commit comments