mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-14 19:55:07 +01:00
init
This commit is contained in:
commit
8a033fc3df
14 changed files with 197 additions and 0 deletions
17
example-user/src/main.rs
Normal file
17
example-user/src/main.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#![cfg_attr(not(test), no_std)]
|
||||
#![no_main]
|
||||
|
||||
use core::ffi::c_char;
|
||||
|
||||
extern crate libuwuc;
|
||||
|
||||
#[panic_handler]
|
||||
#[cfg(not(test))]
|
||||
fn handler(_arg: &core::panic::PanicInfo) -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
extern "C" fn main(_argc: i32, _argv: *const *const c_char) -> i32 {
|
||||
0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue