implement ExitProcess for Windows
This commit is contained in:
parent
d410b13139
commit
6a6c0cd5f0
@ -78,6 +78,10 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a + 'mir>: crate::MiriEvalContextExt<'
|
|||||||
let code = this.read_scalar(args[0])?.to_i32()?;
|
let code = this.read_scalar(args[0])?.to_i32()?;
|
||||||
return err!(Exit(code));
|
return err!(Exit(code));
|
||||||
}
|
}
|
||||||
|
"ExitProcess" => {
|
||||||
|
let code = this.read_scalar(args[0])?.to_u32()?;
|
||||||
|
return err!(Exit(code as i32));
|
||||||
|
}
|
||||||
_ => if dest.is_none() {
|
_ => if dest.is_none() {
|
||||||
return err!(Unimplemented(
|
return err!(Unimplemented(
|
||||||
format!("can't call diverging foreign function: {}", link_name),
|
format!("can't call diverging foreign function: {}", link_name),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user