Call calls a function. To do so, use the following protocol: first, the function to be called is pushed onto the stack; then, the arguments to the function are pushed in direct order - that is, the first argument is pushed first. Finally, call Call. argCount is the number of arguments that you pushe
(argCount, resultCount int)
| 1356 | // |
| 1357 | // http://www.lua.org/manual/5.2/manual.html#lua_call |
| 1358 | func (l *State) Call(argCount, resultCount int) { |
| 1359 | l.CallWithContinuation(argCount, resultCount, 0, nil) |
| 1360 | } |
| 1361 | |
| 1362 | // Top returns the index of the top element in the stack. Because Lua indices |
| 1363 | // start at 1, this result is equal to the number of elements in the stack |