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

Method PushGoFunction

lua.go:1485–1485  ·  view source on GitHub ↗

PushGoFunction pushes a Function implemented in Go onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushcfunction

(f Function)

Source from the content-addressed store, hash-verified

1483//
1484// http://www.lua.org/manual/5.2/manual.html#lua_pushcfunction
1485func (l *State) PushGoFunction(f Function) { l.PushGoClosure(f, 0) }
1486
1487// IsFunction verifies that the value at index is a function, either Go or
1488// Lua function.

Callers 6

TestErrorFunction · 0.95
TestErrorfFunction · 0.95
RegisterMethod · 0.95
OpenLibrariesFunction · 0.80
pairsFunction · 0.80
RequireFunction · 0.80

Calls 1

PushGoClosureMethod · 0.95

Tested by 2

TestErrorFunction · 0.76
TestErrorfFunction · 0.76