INNER CODE UNIT · Rust
init
c3rb3ru5d3d53c/binlex · crates/libvex/libvex-rs/src/lib.rs:35
fn init() {
use std::sync::Once;
use vex_sys::LibVEX_Init;
static INIT: Once = Once::new();
INIT.call_once(|| {
let mut vcon = crate::VexControl::default();
unsafe {
LibVEX_Init(Some(failure_exit), Some(log_bytes), 3, &mut vcon.0);
}
})
}
pub struct ArchInfo(pub vex_sys::VexArchInfo);
impl Default for ArchInfo {
fn default() -> Self {
let mut this = std::mem::MaybeUninit::uninit();