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

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

作者:rdlaitil    项目:lea   
// Returns the status of the thread s.
//
// The status can be 0 for a normal thread, an error code if the thread
// finished its execution with an error, or luajit.Yield if the thread
// is suspended.
func (this *State) Status() int {
	return int(C.lua_status(this.luastate))
}

作者:szl    项目:golu   
// lua_status
func (L *State) Status() int {
	return int(C.lua_status(L.s))
}

作者:halturi    项目:luaji   
// Returns the status of the thread s.
//
// The status can be 0 for a normal thread, an error code if the thread
// finished its execution with an error, or luajit.Yield if the thread
// is suspended.
func (s *State) Status() int {
	return int(C.lua_status(s.l))
}


问题


面经


文章

微信
公众号

扫码关注公众号