macro_rules! linux_entry {
(
// The main() function will return LinuxResult, and get converted to LINUX_EXIT
linux_result) => { ... };
(
// $main_body: the body of the entry point function that receives the result of main()
main_body: $main_body:expr) => { ... };
(
//
_start: $main:ident) => { ... };
}Available on crate feature
linux only.Expand description
🐧 ⌗ Defines the program entry point and main fn translation layer for Linux systems.
Handles architecture-specific entry point setup and Rust-to-C ABI translation.