예제 #1
0
파일: State.go 프로젝트: rdlaitila/leaf
// 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))
}
예제 #2
0
파일: lua.go 프로젝트: szll/golua
// lua_status
func (L *State) Status() int {
	return int(C.lua_status(L.s))
}
예제 #3
0
파일: state.go 프로젝트: halturin/luajit
// 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))
}