We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345d267 commit 1c4fbceCopy full SHA for 1c4fbce
gccjit_sys/src/lib.rs
@@ -708,4 +708,7 @@ extern "C" {
708
709
#[cfg(feature="master")]
710
pub fn gcc_jit_is_lto_supported() -> bool;
711
+
712
+ #[cfg(feature="master")]
713
+ pub fn gcc_jit_type_set_addressable(typ: *mut gcc_jit_type);
714
}
src/types.rs
@@ -120,6 +120,13 @@ impl<'ctx> Type<'ctx> {
120
121
122
123
124
+ pub fn set_addressable(&self) {
125
+ unsafe {
126
+ gccjit_sys::gcc_jit_type_set_addressable(self.ptr);
127
+ }
128
129
130
/// Given a type T, creates a type of const T.
131
pub fn make_const(self) -> Type<'ctx> {
132
unsafe {
0 commit comments