pub fn emscripten_get_main_func_name<'a>(
    instance: &Instance,
    main_func_names: &[&'a str]
) -> Result<&'a str, ExportError>
Expand description

Looks for variations of the main function (usually ["_main", "main"]), then returns a reference to the name of the first found function. Useful for determining whether a module is executable.

Returns ExportError if none of the main_func_names were found.