mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
implement ExitProcess for Windows
This commit is contained in:
@@ -78,6 +78,10 @@ fn emulate_foreign_item(
|
||||
let code = this.read_scalar(args[0])?.to_i32()?;
|
||||
return err!(Exit(code));
|
||||
}
|
||||
"ExitProcess" => {
|
||||
let code = this.read_scalar(args[0])?.to_u32()?;
|
||||
return err!(Exit(code as i32));
|
||||
}
|
||||
_ => if dest.is_none() {
|
||||
return err!(Unimplemented(
|
||||
format!("can't call diverging foreign function: {}", link_name),
|
||||
|
||||
Reference in New Issue
Block a user