Commit fb6969cc authored by Astro's avatar Astro
Browse files

add os

parent a44a3bad
......@@ -65,8 +65,9 @@ pub mod bindings {
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
}
use bindings::*;
mod os;
pub use os::*;
mod display;
pub use display::{Display, Color, LineStyle, FillStyle};
mod buttons;
......
use super::bindings::*;
pub fn exec(path: &str) -> ! {
let mut pathbuf = super::str_to_cstr(path);
unsafe {
epic_exec(pathbuf.as_mut_ptr());
}
unreachable!()
}
pub fn exit(ret: i32) -> ! {
unsafe {
epic_exit(ret);
}
unreachable!()
}
pub fn system_reset() -> ! {
unsafe {
epic_system_reset();
}
unreachable!()
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment