Function settop

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

Accepts any 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.