Пример #1
0
// Moves the top element into the given position (and pops it), without
// shifting any element (therefore replacing the value at the given
// position).
func (this *State) Replace(index int) {
	C.lua_replace(this.luastate, C.int(index))
}
Пример #2
0
Файл: lua.go Проект: szll/golua
// lua_replace
func (L *State) Replace(index int) {
	C.lua_replace(L.s, C.int(index))
}
Пример #3
0
// Moves the top element into the given position (and pops it), without
// shifting any element (therefore replacing the value at the given
// position).
func (s *State) Replace(index int) {
	C.lua_replace(s.l, C.int(index))
}