예제 #1
0
파일: State.go 프로젝트: rdlaitila/leaf
// Returns true if the two values at valid indices i1 and i2 are
// primitively equal (that is, without calling metamethods). Otherwise
// returns false. Also returns false if any of the indices are invalid.
func (this *State) Rawequal(i1, i2 int) bool {
	return int(C.lua_rawequal(this.luastate, C.int(i1), C.int(i2))) == 1
}
예제 #2
0
파일: lua.go 프로젝트: szll/golua
// lua_rawequal
func (L *State) RawEqual(index1 int, index2 int) bool {
	return C.lua_rawequal(L.s, C.int(index1), C.int(index2)) != 0
}
예제 #3
0
파일: state.go 프로젝트: halturin/luajit
// Returns true if the two values at valid indices i1 and i2 are
// primitively equal (that is, without calling metamethods). Otherwise
// returns false. Also returns false if any of the indices are invalid.
func (s *State) Rawequal(i1, i2 int) bool {
	return int(C.lua_rawequal(s.l, C.int(i1), C.int(i2))) == 1
}