コード例 #1
0
ファイル: State.go プロジェクト: rdlaitila/leaf
// Moves the top element into the given valid index, shifting up the elements
// above this index to open space. Cannot be called with a pseudo-index,
// because a pseudo-index is not an actual stack position.
func (this *State) Insert(index int) {
	C.lua_insert(this.luastate, C.int(index))
}
コード例 #2
0
ファイル: lua.go プロジェクト: szll/golua
// lua_insert
func (L *State) Insert(index int) { C.lua_insert(L.s, C.int(index)) }
コード例 #3
0
ファイル: state.go プロジェクト: halturin/luajit
// Moves the top element into the given valid index, shifting up the elements
// above this index to open space. Cannot be called with a pseudo-index,
// because a pseudo-index is not an actual stack position.
func (s *State) Insert(index int) {
	C.lua_insert(s.l, C.int(index))
}