Skip to main content

library_function_load

Function library_function_load 

Source
pub fn library_function_load(
    kind: ExportKind,
    name: &str,
    lib: Expr,
    native_sig: Option<(Vec<Expr>, Expr)>,
) -> Expr
Expand description

Build Caller[LibraryFunctionLoad[lib, name, <args>, <ret>]] for one exported function.

lib is any Expr that evaluates to the dylib path — a string literal at runtime, or a libN symbol bound in the generated Functions.wl prelude. native_sig supplies the real argument/return type Exprs for ExportKind::Native; for Wstp/Wxf the wire shape is fixed and it is ignored.