Skip to main content

call_method_def

Function call_method_def 

Source
pub(crate) fn call_method_def(
    def_ident: &Ident,
    c_ident: &Ident,
    num_args: usize,
) -> TokenStream
Expand description

Emit a registration with exactly the wrapper’s C arity. The caller owns cfg/doc attributes and decides whether its signature includes a call slot. The registered name is also the linker symbol used by the wasm writer.