Utils/intflags

Source   Edit  

Types

IntFlag[E] = distinct cint
Source   Edit  

Procs

proc `$`[E](x: IntFlag[E]): string
Source   Edit  
proc `==`[E](a, b: IntFlag[E]): bool
Source   Edit  
proc `==`[E](a: IntFlag[E]; b: E): bool
Source   Edit  
proc `or`[E](a, b: IntFlag[E]): IntFlag[E]
Source   Edit  

Templates

template declareIntFlag(name; body)
Source   Edit  
template declareIntFlag(name; pure; body)
Source   Edit  
template prepareIntFlagOr() {.dirty.}
Source   Edit