vexos: implement pal::os::exit

This commit is contained in:
Tropical 2025-10-11 14:42:26 -05:00
parent 442288534b
commit 04da682613
2 changed files with 19 additions and 1 deletions

View file

@ -1,4 +1,3 @@
#[path = "../unsupported/os.rs"]
pub mod os;
#[path = "../unsupported/pipe.rs"]
pub mod pipe;

View file

@ -0,0 +1,19 @@
#[expect(dead_code)]
#[path = "../unsupported/os.rs"]
mod unsupported_os;
pub use unsupported_os::{
JoinPathsError, SplitPaths, chdir, current_exe, errno, error_string, getcwd, getpid, home_dir,
join_paths, split_paths, temp_dir,
};
pub use super::unsupported;
pub fn exit(_code: i32) -> ! {
unsafe {
vex_sdk::vexSystemExitRequest();
loop {
vex_sdk::vexTasksRun();
}
}
}