lua_setlocal

Function lua_setlocal 

Source
pub fn lua_setlocal(l: LuaState, ar: *mut LuaDebug, n: c_int) -> LuaString
Expand description

Sets the value of a local variable of a given activation record. Parameters ar and n are as in lua_getlocal. lua_setlocal assigns the value at the top of the stack to the variable and returns its name. It also pops the value from the stack.