Skip to main content

try_load_module

Function try_load_module 

Source
pub fn try_load_module(table: &modulestab, name: &str) -> i32
Expand description

Port of try_load_module(char const *name) from Src/module.c:1583.

C body iterates module_path looking for a loadable file via dlopen. Static-link path: a module is “loadable” iff it’s in our static ModuleTable.modules map. WARNING: param names don’t match C — Rust=(table, name) vs C=(name)