Core/src/lib.rs
sweetbread 59d825577a feat: Buttons + events
wip: malloc

feat: Buttons
2024-01-31 16:31:47 +03:00

32 lines
503 B
Rust

#![no_std]
mod modules;
mod nanolibc;
pub mod sys;
pub mod allocation;
pub use modules::*;
#[macro_use]
extern crate alloc;
#[macro_export]
macro_rules! throw_new {
($text:expr) => {
debug_write(&format!(
"{}:{}\nAn error raised:\n{}\n",
file!(),
line!(),
$text
));
};
}
#[macro_export]
macro_rules! panic {
($text:expr) => {
debug_write(cstr_core::cstr!("Panic!\n" + $text + "\n"));
sys::exit();
};
}