Skip to main content

call_native_wolfram_library_function

Function call_native_wolfram_library_function 

Source
pub unsafe fn call_native_wolfram_library_function<'a, F: NativeFunction<'a>>(
    lib_data: WolframLibraryData,
    args: *mut MArgument,
    argc: mint,
    res: MArgument,
    func: F,
) -> c_int
Expand description

Returned when wolfram_library_link::initialize fails on entry. Returned when the wrapped Rust code panicked. Bridge a native #[export]-marked function across the LibraryLink C ABI.

  1. Calls wolfram_library_link::initialize(lib_data).
  2. Slices argc raw MArguments, hands them to the user’s NativeFunction impl (which performs FromArg/IntoArg conversions), catching any panic.