vise/state/flag.go

22 lines
315 B
Go
Raw Normal View History

package state
const (
FLAG_READIN = 1
FLAG_INMATCH = 2
FLAG_TERMINATE = 3
FLAG_DIRTY = 4
FLAG_LOADFAIL = 5
2023-04-16 09:51:16 +02:00
FLAG_USERSTART = 9
//FLAG_WRITEABLE = FLAG_LOADFAIL
)
func IsWriteableFlag(flag uint32) bool {
if flag > 7 {
return true
}
//if flag & FLAG_WRITEABLE > 0 {
// return true
//}
return false
}