| Crates.io | fn_abi |
| lib.rs | fn_abi |
| version | 3.0.0 |
| created_at | 2021-09-23 23:19:20.855572+00 |
| updated_at | 2022-03-07 11:44:14.560191+00 |
| description | A proc attribute macro that sets the ABI/calling convention for the attributed function |
| homepage | |
| repository | https://github.com/WilliamVenner/fn_abi |
| max_upload_size | |
| id | 455654 |
| size | 7,635 |
fn_abiA proc attribute macro that sets the ABI/calling convention for the attributed function.
#[macro_use] extern crate fn_abi;
#[abi("fastcall")]
extern fn hello_world_fastcall() {
println!("hello world!");
}
#[cfg_attr(all(target_os = "windows", target_pointer_width = "32"), abi("thiscall"))]
#[cfg_attr(all(target_os = "windows", target_pointer_width = "64"), abi("fastcall"))]
extern fn hello_world_windows() {
println!("hello world!");
}