pub fn script_helper(func: fn())
Expand description

Prelued-postlued helper function (calls init and shutdown for you)

binaryninja::headless::script_helper(|| {
    binaryninja::load("/bin/cat")
        .expect("Couldn't open `/bin/cat`")
        .iter()
        .for_each(|func| println!("  `{}`", func.symbol().full_name()));
});