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

Method IsFunction

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

IsFunction verifies that the value at index is a function, either Go or Lua function. http://www.lua.org/manual/5.2/manual.html#lua_isfunction

(index int)

Source from the content-addressed store, hash-verified

1489//
1490// http://www.lua.org/manual/5.2/manual.html#lua_isfunction
1491func (l *State) IsFunction(index int) bool { return l.TypeOf(index) == TypeFunction }
1492
1493// IsTable verifies that the value at index is a table.
1494//

Callers 2

internalHookFunction · 0.80
findLoaderFunction · 0.80

Calls 1

TypeOfMethod · 0.95

Tested by

no test coverage detected