Пример #1
0
Файл: lua.go Проект: szll/golua
// lua_equal
func (L *State) Equal(index1, index2 int) bool {
	return C.lua_equal(L.s, C.int(index1), C.int(index2)) == 1
}
Пример #2
0
// Returns true if the two values in valid indices i1 and i2 are equal,
// following the semantics of the Lua == operator (that is, may call
// metamethods). Otherwise returns false. Also returns false if any of the
// indices is invalid.
func (s *State) Equal(i1, i2 int) bool {
	return int(C.lua_equal(s.l, C.int(i1), C.int(i2))) == 1
}