pub fn emit_fatal_program<'p>(
    options: &Options,
    is_systemlib: bool,
    op: FatalOp,
    pos: &Pos,
    msg: impl AsRef<str>,
) -> Result<HhasProgram<'p>> {
    let mut emitter = Emitter::new(options.clone(), is_systemlib, false);
    let body_instrs = emit_fatal(op, pos, msg);
    let main = make_body(
        &mut emitter,
        body_instrs,
        vec![],
        false,
        false,
        vec![],
        vec![],
        vec![],
        None,
        None,
        None,
    )?;
    Ok(HhasProgram {
        is_hh: true,
        main,
        ..HhasProgram::default()
    })
}
/// This is the entry point from hh_single_compile & fuzzer
This is the entry point from hh_single_compile & fuzzer
This is the entry point from hh_single_compile & fuzzer
pub fn emit_fatal_program<'p>(
    options: &Options,
    is_systemlib: bool,
    op: FatalOp,
    pos: &Pos,
    msg: impl AsRef<str>,
) -> Result<HhasProgram<'p>> {
    let mut emitter = Emitter::new(options.clone(), is_systemlib, false);
    let body_instrs = emit_fatal(op, pos, msg);
    let main = make_body(
        &mut emitter,
        body_instrs,
        vec![],
        false,
        false,
        vec![],
        vec![],
        vec![],
        None,
        None,
        None,
    )?;
    Ok(HhasProgram {
        is_hh: true,
        main,
        ..HhasProgram::default()
    })
}
pub fn emit_fatal_program < ' p > ( options : & Options , is_systemlib : bool , op : FatalOp , pos : & Pos , msg : impl AsRef < str > , ) -> Result < HhasProgram < ' p > > { let mut emitter = Emitter :: new ( options . clone ( ) , is_systemlib , false ) ; let body_instrs = emit_fatal ( op , pos , msg ) ; let main = make_body ( & mut emitter , body_instrs , vec ! [ ] , false , false , vec ! [ ] , vec ! [ ] , vec ! [ ] , None , None , None , ) ? ; Ok ( HhasProgram { is_hh : true , main , .. HhasProgram :: default ( ) } ) }
This is the entry point from hh_single_compile & fuzzer
This is the entry point from hh_single_compile & fuzzer
options
&Options
is_systemlib
bool
op
FatalOp
pos
&Pos
msg
impl AsRef<str>