MCPcopy Index your code
hub / github.com/Shopify/go-lua / Call

Method Call

lua.go:1358–1360  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1356//
1357// http://www.lua.org/manual/5.2/manual.html#lua_call
1358func (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

Callers 14

TestParserFunction · 0.95
TestEmptyStringFunction · 0.95
testStringHelperFunction · 0.95
TestProtectedCallFunction · 0.95
ExampleFunction · 0.95
internalHookFunction · 0.80
pairsFunction · 0.80
ReadMethod · 0.80
base.goFile · 0.80
LessMethod · 0.80
findLoaderFunction · 0.80
PackageOpenFunction · 0.80

Calls 1

CallWithContinuationMethod · 0.95

Tested by 5

TestParserFunction · 0.76
TestEmptyStringFunction · 0.76
testStringHelperFunction · 0.76
TestProtectedCallFunction · 0.76
ExampleFunction · 0.76