Skip to main content

Module macro_utils

Module macro_utils 

Source
Expand description

Native-mode runtime: the C-ABI dispatcher the #[export] macro calls into for MArgument-based functions, plus the #[init] helper.

Types and helpers (NativeFunction, initialize, call_and_catch_panic) are imported from wolfram-library-link; the dispatcher logic itself is owned here so the macro emission paths under wolfram_export::macro_utils::* resolve without going back through wolfram-library-link.

Functions§

call_native_wolfram_library_function
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.
init_with_user_function
Bridge an #[init]-marked function: runs initialize then the user’s init body inside a panic guard.