コード例 #1
0
ファイル: State.go プロジェクト: rdlaitila/leaf
// 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))
}
コード例 #2
0
ファイル: lua.go プロジェクト: szll/golua
// lua_xmove
func XMove(from *State, to *State, n int) {
	C.lua_xmove(from.s, to.s, C.int(n))
}
コード例 #3
0
ファイル: state.go プロジェクト: halturin/luajit
// 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))
}