Function setfenv

Source
pub unsafe extern "C" fn setfenv(state: lua_State, index: i32) -> i32
Expand description

Pops a table from the stack and sets it as the new environment for the value at the given index. If the value at the given index is neither a function nor a thread nor a userdata, setfenv (lua_setfenv) returns 0. Otherwise it returns 1.