示例#1
0
文件: State.go 项目: rdlaitila/leaf
// Pushes the thread represented by s onto the stack. Returns 1 if this
// thread is the main thread of its state.
func (this *State) Pushthread() int {
	return int(C.lua_pushthread(this.luastate))
}
示例#2
0
文件: lua.go 项目: szll/golua
// lua_pushthread
func (L *State) PushThread() (isMain bool) {
	return C.lua_pushthread(L.s) != 0
}
示例#3
0
文件: state.go 项目: halturin/luajit
// Pushes the thread represented by s onto the stack. Returns 1 if this
// thread is the main thread of its state.
func (s *State) Pushthread() int {
	return int(C.lua_pushthread(s.l))
}