Skip to main content

ll_loadlib

Function ll_loadlib 

Source
pub fn ll_loadlib(state: &mut LuaState) -> Result<usize, LuaError>
Expand description

package.loadlib(filename, funcname) — open a C library and return a Lua-callable wrapper for funcname.

Returns: on success, the loader function (1 value). On error: false, error-message string, and "open" or "init" (3 values).