mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-14 11:45:05 +01:00
hello world
This commit is contained in:
parent
52b9c8fb38
commit
ddba35d06b
12 changed files with 492 additions and 6 deletions
|
|
@ -3,15 +3,19 @@
|
|||
|
||||
use core::ffi::c_char;
|
||||
|
||||
use libuwuc::println;
|
||||
|
||||
extern crate libuwuc;
|
||||
|
||||
#[panic_handler]
|
||||
#[cfg(not(test))]
|
||||
fn handler(_arg: &core::panic::PanicInfo) -> ! {
|
||||
loop {}
|
||||
libuwuc::io::println!("panic!");
|
||||
libuwuc::start::exit(1);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
extern "C" fn main(_argc: i32, _argv: *const *const c_char) -> i32 {
|
||||
println!("Hello, world!");
|
||||
0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue