forked from External/ergo
tweaks to NAMES implementation
This commit is contained in:
parent
378d88fee2
commit
780116b0c2
6 changed files with 84 additions and 41 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue