pub mod edges;
pub mod log;
pub mod region;
mod time;
mod string;
mod handle;
pub use self::time::{current_time, ToMs};
pub use self::handle::*;
pub(crate) use self::string::{c_to_rust_string, safe_as_cstring};
#[cfg(feature = "unstable")]
pub(crate) unsafe fn handle_unwind<T>(res: ::std::thread::Result<T>) {
match res {
Ok(_) => {}
Err(err) => {
if ::compositor::COMPOSITOR_PTR == 0 as *mut _ {
::std::process::abort();
}
(&mut *::compositor::COMPOSITOR_PTR).save_panic_error(err);
::compositor::terminate()
}
}
}