Skip to main content

module_declares_main_fn

Function module_declares_main_fn 

Source
pub fn module_declares_main_fn(module: &AIRModule) -> bool
Expand description

Returns true if the given AIR module declares a top-level function named main. Used by the build pipeline to decide whether to append an entry-point invocation to the generated output of targets without a native main convention.