Skip to content

rust port: expose an API to use metacall_clear #589

@fahdfady

Description

@fahdfady

feature

there is no API to unload scripts from metacall in the Rust port.
this will be helpful:

unsafe extern "C" {
#[doc = " @brief\n Clear handle from memory and unload related resources\n\n @param[in] handle\n Reference to the handle to be unloaded\n\n @return\n Zero if success, different from zero otherwise"]
pub fn metacall_clear(handle: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}

motivation

I needed that when i was developing https://github.com/fahdfady/metacall-playground/ and didn't find a way to achieve this functionality through the metacall crate (0.5.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions