Golang C.lua_rawequal类(方法)实例源码

下面列出了Golang C.lua_rawequal 类(方法)源码代码实例,从而了解它的用法。

作者:rdlaitil    项目:lea   
// 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
}

作者:szl    项目:golu   
// lua_rawequal
func (L *State) RawEqual(index1 int, index2 int) bool {
	return C.lua_rawequal(L.s, C.int(index1), C.int(index2)) != 0
}

作者:halturi    项目:luaji   
// 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
}


问题


面经


文章

微信
公众号

扫码关注公众号