libperl-macrogen 0.1.5

Generate Rust FFI bindings from C macro functions in Perl headers
Documentation
1
2
3
4
5
6
7
8
/// SvTYPE - macro function
#[inline]
#[allow(unsafe_op_in_unsafe_fn)]
pub unsafe fn SvTYPE(sv: *const SV) -> svtype {
    unsafe {
        std::mem::transmute::<_, svtype>(((*sv).sv_flags & SVTYPEMASK))
    }
}