Esempio n. 1
0
File: lua.go Progetto: szll/golua
// lua_rawgeti
func (L *State) RawGeti(index int, n int) {
	C.lua_rawgeti(L.s, C.int(index), C.int(n))
}
Esempio n. 2
0
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))
	}
}
Esempio n. 3
0
// 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))
}
Esempio n. 4
0
// 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))
}