Esempio n. 1
0
// 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))
}
Esempio n. 2
0
File: lua.go Progetto: szll/golua
// lua_status
func (L *State) Status() int {
	return int(C.lua_status(L.s))
}
Esempio n. 3
0
// 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))
}