portability/test/example_exe.rs
2025-02-01 14:37:46 +01:00

13 lines
210 B
Rust

#![no_std]
#![no_main]
#![windows_subsystem = "console"]
#[panic_handler]
fn handle_panic(_: &core::panic::PanicInfo<'_>) -> ! {
loop {}
}
#[no_mangle]
pub extern "stdcall" fn my_main() -> u32 {
42
}