1
0
Fork 0
forked from External/ergo

tweaks to NAMES implementation

This commit is contained in:
Shivaram Lingamneni 2023-04-02 02:30:14 -04:00
parent 378d88fee2
commit 780116b0c2
6 changed files with 84 additions and 41 deletions

View file

@ -345,6 +345,10 @@ func NewModeSet() *ModeSet {
return &set
}
func (set *ModeSet) Clear() {
utils.BitsetClear(set[:])
}
// test whether `mode` is set
func (set *ModeSet) HasMode(mode Mode) bool {
if set == nil {