示例#1
0
文件: State.go 项目: rdlaitila/leaf
// 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
文件: state.go 项目: halturin/luajit
// 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))
}