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

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

作者:rdlaitil    项目:lea   
// 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))
}

作者:szl    项目:golu   
// lua_pushthread
func (L *State) PushThread() (isMain bool) {
	return C.lua_pushthread(L.s) != 0
}

作者:halturi    项目:luaji   
// 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))
}


问题


面经


文章

微信
公众号

扫码关注公众号