本文整理汇总了Golang中C.lua_replace函数的典型用法代码示例。如果您正苦于以下问题:Golang lua_replace函数的具体用法?Golang lua_replace怎么用?Golang lua_replace使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了lua_replace函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: Replace
// 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: Replace
// lua_replace
func (L *State) Replace(index int) {
C.lua_replace(L.s, C.int(index))
}
示例3: Replace
// 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))
}