Skip to main content

init

Attribute Macro init 

Source
#[init]
Expand description

Mark a function as the library’s WolframLibrary_initialize() entry point.

The annotated function must take no arguments and return (). Behind the scenes the macro emits a WolframLibrary_initialize C symbol that calls wolfram_export_native::macro_utils::init_with_user_function(lib, user_fn).