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

Method RawEqual

lua.go:735–740  ·  view source on GitHub ↗

RawEqual verifies that the values at index1 and index2 are primitively equal (that is, without calling their metamethods). http://www.lua.org/manual/5.2/manual.html#lua_rawequal

(index1, index2 int)

Source from the content-addressed store, hash-verified

733//
734// http://www.lua.org/manual/5.2/manual.html#lua_rawequal
735func (l *State) RawEqual(index1, index2 int) bool {
736 if o1, o2 := l.indexToValue(index1), l.indexToValue(index2); o1 != nil && o2 != nil {
737 return o1 == o2
738 }
739 return false
740}
741
742// Compare compares two values.
743//

Callers 3

base.goFile · 0.80
findFieldFunction · 0.80
TestUserDataFunction · 0.80

Calls 1

indexToValueMethod · 0.95

Tested by 1

TestUserDataFunction · 0.64