mirror of
https://github.com/Noratrieb/portability.git
synced 2026-01-14 15:55:04 +01:00
STUFF
This commit is contained in:
parent
cec97ff44d
commit
64c30e201d
11 changed files with 4426 additions and 213 deletions
28
test2/ordinal_dll.rs
Normal file
28
test2/ordinal_dll.rs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#![no_std]
|
||||
#![crate_type = "cdylib"]
|
||||
#![windows_subsystem = "console"]
|
||||
|
||||
#[panic_handler]
|
||||
fn handle_panic(_: &core::panic::PanicInfo<'_>) -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn my_export_ordinal_1() -> u32 {
|
||||
1
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn my_export_ordinal_2() -> u32 {
|
||||
2
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn my_export_named() -> u32 {
|
||||
5
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "stdcall" fn _DllMainCRTStartup() -> u32 {
|
||||
0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue