pub fn script_helper(func: fn())
Prelued-postlued helper function (calls init and shutdown for you)
init
shutdown
binaryninja::headless::script_helper(|| { binaryninja::load("/bin/cat") .expect("Couldn't open `/bin/cat`") .iter() .for_each(|func| println!(" `{}`", func.symbol().full_name())); });