Description

Top returns the index of the top element in the stack. Because Lua indices start at 1, this result is equal to the number of elements in the stack (hence 0 means an empty stack).

http://www.lua.org/manual/5.2/manual.html#lua_gettop

Top is referenced in 5 repositories

github.com/Shopify/go-lua github.com/Shopify/goluago github.com/jtolds/go-luar

...