Golang C.lua_xmove类(方法)实例源码

下面列出了Golang C.lua_xmove 类(方法)源码代码实例,从而了解它的用法。

作者:rdlaitil    项目:lea   
// Exchange values between different threads of the /same/ global state.
//
// This function pops n values from the stack from, and pushes them onto
// the stack to.
func (this *State) Xmove(from *State, n int) {
	C.lua_xmove(from.luastate, this.luastate, C.int(n))
}

作者:szl    项目:golu   
// lua_xmove
func XMove(from *State, to *State, n int) {
	C.lua_xmove(from.s, to.s, C.int(n))
}

作者:halturi    项目:luaji   
// Exchange values between different threads of the /same/ global state.
//
// This function pops n values from the stack from, and pushes them onto
// the stack to.
func (to *State) Xmove(from *State, n int) {
	C.lua_xmove(from.l, to.l, C.int(n))
}


问题


面经


文章

微信
公众号

扫码关注公众号