Files
go-astiav/flag.go
Quentin Renard 477b147104 Initial commit
2022-02-13 19:08:18 +01:00

10 lines
200 B
Go

package astiav
type flags int
func (fs flags) add(f int) int { return int(fs) | f }
func (fs flags) del(f int) int { return int(fs) &^ f }
func (fs flags) has(f int) bool { return int(fs)&f > 0 }