作者:rdlaitil
项目:lea
// 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))
}
作者:szl
项目:golu
// lua_replace
func (L *State) Replace(index int) {
C.lua_replace(L.s, C.int(index))
}
作者:halturi
项目:luaji
// 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))
}