本文整理匯總了Golang中C.lua_rawgeti函數的典型用法代碼示例。如果您正苦於以下問題:Golang lua_rawgeti函數的具體用法?Golang lua_rawgeti怎麽用?Golang lua_rawgeti使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了lua_rawgeti函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: RawGeti
// lua_rawgeti
func (L *State) RawGeti(index int, n int) {
C.lua_rawgeti(L.s, C.int(index), C.int(n))
}
示例2: PushValue
func (self *RefLua) PushValue(state State) {
if self.Ref != 0 && self.VM.globalL != nil {
C.lua_rawgeti(state.L, C.LUA_REGISTRYINDEX, C.int(self.Ref))
}
}
示例3: Rawgeti
// Pushes onto the stack the value t[n], where t is the value at the given
// valid index. The access is raw; that is, it does not invoke metamethods.
func (this *State) Rawgeti(index, n int) {
C.lua_rawgeti(this.luastate, C.int(index), C.int(n))
}
示例4: Rawgeti
// Pushes onto the stack the value t[n], where t is the value at the given
// valid index. The access is raw; that is, it does not invoke metamethods.
func (s *State) Rawgeti(index, n int) {
C.lua_rawgeti(s.l, C.int(index), C.int(n))
}