本文整理匯總了Golang中C.lua_rawequal函數的典型用法代碼示例。如果您正苦於以下問題:Golang lua_rawequal函數的具體用法?Golang lua_rawequal怎麽用?Golang lua_rawequal使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了lua_rawequal函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Rawequal
// 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: RawEqual
// 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: Rawequal
// 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
}