top property

int top

The index of the top value in the stack.

Can be set to a previous value as a fast way to clean up or to fill in nil values.

Implementation

int get top => lua_gettop(L);
void top=(int index)

Implementation

set top(int index) => lua_settop(L, index);