Skip to content

Commit f1545d7

Browse files
authored
Merge pull request #39 from zedar/make_is_floating_point_available_for_master
Make is_floating_point() available for master only
2 parents 0789f13 + 7dfc41b commit f1545d7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

gccjit_sys/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ extern {
553553
pub fn gcc_jit_type_dyncast_array(typ: *mut gcc_jit_type) -> *mut gcc_jit_type;
554554
pub fn gcc_jit_type_is_bool(typ: *mut gcc_jit_type) -> c_int;
555555
pub fn gcc_jit_type_is_integral(typ: *mut gcc_jit_type) -> c_int;
556+
#[cfg(feature = "master")]
556557
pub fn gcc_jit_type_is_floating_point(typ: *mut gcc_jit_type) -> c_int;
557558
pub fn gcc_jit_type_unqualified(typ: *mut gcc_jit_type) -> *mut gcc_jit_type;
558559
pub fn gcc_jit_type_is_pointer(typ: *mut gcc_jit_type) -> *mut gcc_jit_type;

src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ impl<'ctx> Type<'ctx> {
172172
}
173173
}
174174

175+
#[cfg(feature = "master")]
175176
pub fn is_floating_point(self) -> bool {
176177
unsafe {
177178
gccjit_sys::gcc_jit_type_is_floating_point(self.ptr) != 0

0 commit comments

Comments
 (0)