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

Method IsUserData

lua.go:703–706  ·  view source on GitHub ↗

IsUserData verifies that the value at index is a userdata. http://www.lua.org/manual/5.2/manual.html#lua_isuserdata

(index int)

Source from the content-addressed store, hash-verified

701//
702// http://www.lua.org/manual/5.2/manual.html#lua_isuserdata
703func (l *State) IsUserData(index int) bool {
704 _, ok := l.indexToValue(index).(*userData)
705 return ok
706}
707
708// Arith performs an arithmetic operation over the two values (or one, in
709// case of negation) at the top of the stack, with the value at the top being

Callers

nothing calls this directly

Calls 1

indexToValueMethod · 0.95

Tested by

no test coverage detected