Skip to main content

main

Macro main 

Source
macro_rules! main {
    ($start:path) => { ... };
    ($start:path, report = $report:expr) => { ... };
    ($start:path, stack_bytes = $bytes:expr) => { ... };
    ($start:path, stack_bytes = $bytes:expr, report = $report:expr) => { ... };
}
Expand description

The game’s entry points, for the crate shuyi export playdate builds: main!(start), with start a fn() -> Start<G>, or main!(start, stack_bytes = 128 * 1024) for a game’s own stack of another size than stack::DEFAULT_BYTES. report = RunReport::new() after either turns on the run report (report). Off the device it only checks they exist.