Macro entry

Source
macro_rules! entry {
    ($main:path) => { ... };
}
Expand description

Define program entry point (_start function) and lang items (panic handler, etc.).

ยงExamples

Simple main function:

entry!(main)

fn main() -> i8 {
   0
}