lua_settop

Function lua_settop 

Source
pub fn lua_settop(l: LuaState, ind: c_int)
Expand description

Accepts any acceptable index, or 0, and sets the stack top to this index. If the new top is larger than the old one, then the new elements are filled with nil. If index is 0, then all stack elements are removed.