ableos_userland/libraries/std/src/exit.rs
2023-03-30 05:21:18 -05:00

19 lines
341 B
Rust

use crate::{Error, LocationInFile};
/// Exit a program
pub fn exit(error_code: Option<impl Error>) -> ! {
loop {}
}
pub struct GenericError {
pub error_id: u128,
// location: LocationInFile<'a>,
// a_lil_message_as_a_treat: &'a str,
}
impl Error for GenericError {
fn id(&self) -> u128 {
self.error_id
}
}