macro_rules! void_plugin {
($init_fn:ident) => { ... };
}Expand description
Exports standard WebAssembly FFI functions (void_invoke, void_free_string, etc.)
and invokes the user’s plugin registration function on initialization.
§Example
use void_sdk_rust::{register, void_plugin};
fn init_registrations() {
register("greet", greet_func);
}
void_plugin!(init_registrations);