[−][src]Attribute Macro winit_main_proc::main
#[main]
Proc-macro around a "simulated main thread" function, which hijacks itself
with winit_main::run
and spawns the function body in a new thread with
callbacks to communcate with the main thread.
Input:
ⓘ
#[winit_main::main] fn main(event_loop: EventLoopHandle, events: EventReceiver) { // stuff goes here }
Output:
ⓘ
fn main() -> ! { fn _inner(event_loop: EventLoopHandle, events: EventReceiver) { // stuff goes here } ::winit_main::run(_inner) }