macro_rules! fun {
($name:ident) => { ... };
($path:path) => { ... };
}Expand description
Build a FunctionDecl from a bare function ident or a path:
fun!(foo)— a#[prebindgen]fn; its signature is read from the registry.fun!(crate::foo)— a binding-local fn: any fn the binding crate defines, exported through the same machinery as a#[prebindgen]one. A path carries no signature to read, so chain.sig(sig!(…)). The generated file calls it by the declared path (it compiles inside the binding crate, socrate::-rooted paths resolve).