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

Method IsGoFunction

lua.go:672–678  ·  view source on GitHub ↗

IsGoFunction verifies that the value at index is a Go function. http://www.lua.org/manual/5.2/manual.html#lua_iscfunction

(index int)

Source from the content-addressed store, hash-verified

670//
671// http://www.lua.org/manual/5.2/manual.html#lua_iscfunction
672func (l *State) IsGoFunction(index int) bool {
673 if _, ok := l.indexToValue(index).(*goFunction); ok {
674 return true
675 }
676 _, ok := l.indexToValue(index).(*goClosure)
677 return ok
678}
679
680// IsNumber verifies that the value at index is a number.
681//

Callers 1

debug.goFile · 0.80

Calls 1

indexToValueMethod · 0.95

Tested by

no test coverage detected