#![cfg_attr(target_os, windows)] #![deny(unsafe_op_in_unsafe_fn)]
#[cfg(all(feature = "rwh_05", not(feature = "rwh_06")))]
pub use rwh_05 as raw_window_handle;
#[cfg(all(feature = "rwh_06", not(feature = "rwh_05")))]
pub use rwh_06 as raw_window_handle;
pub mod debug;
mod handle;
pub mod prelude;
pub mod window;
pub fn signed_lo_word(dword: i32) -> i16 {
dword as i16
}
pub fn lo_word(dword: u32) -> u16 {
dword as u16
}
pub fn signed_hi_word(dword: i32) -> i16 {
(dword >> 16) as i16
}
pub fn hi_word(dword: u32) -> u16 {
(dword >> 16) as u16
}
pub fn signed_lo_byte(word: i16) -> i8 {
word as i8
}
pub fn lo_byte(word: u16) -> u8 {
word as u8
}
pub fn signed_hi_byte(word: i16) -> i8 {
(word >> 8) as i8
}
pub fn hi_byte(word: u16) -> u8 {
(word >> 8) as u8
}