#[module_safe_unload]Expand description
Helper for unloading a “safe” Tcl extensions
This macro will automatically create the appropriate wrapper to validate the interpreter and pass it to the given unload routine. The prototype of the wrapped function should be
type unload_fn = fn(interp: &rtea::Interpreter, flags: TclUnloadFlag) -> Result<rtea::TclStatus, String>;and the module’s name (as given to module_init) should be given as the sole attribute to the macro.