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
()
| 1365 | // |
| 1366 | // http://www.lua.org/manual/5.2/manual.html#lua_gettop |
| 1367 | func (l *State) Top() int { return l.top - (l.callInfo.function + 1) } |
| 1368 | |
| 1369 | // Copy moves the element at the index from into the valid index to |
| 1370 | // without shifting any element (therefore replacing the value at that |
no outgoing calls