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_intExpand 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.
- Calls
wolfram_library_link::initialize(lib_data). - Slices
argcrawMArguments, hands them to the user’sNativeFunctionimpl (which performsFromArg/IntoArgconversions), catching any panic.