1 2 3 4 5 6 7 8 9 10
use std::os::raw::c_int; extern "C" { fn newt_sys__colorset_custom(i: c_int) -> c_int; } #[inline] pub fn NEWT_COLORSET_CUSTOM(i: i32) -> i32 { unsafe { newt_sys__colorset_custom(i) } }
1 2 3 4 5 6 7 8 9 10
use std::os::raw::c_int; extern "C" { fn newt_sys__colorset_custom(i: c_int) -> c_int; } #[inline] pub fn NEWT_COLORSET_CUSTOM(i: i32) -> i32 { unsafe { newt_sys__colorset_custom(i) } }