Skip to main content

lua_tocfunction

Function lua_tocfunction 

Source
pub unsafe extern "C-unwind" fn lua_tocfunction(
    state: *mut _LuaState,
    idx: c_int,
) -> c_int
Expand description

Converts a value at the given index to a C function. That value must be a C function; otherwise, returns NULL.