intflags

Source   Edit  

Types

IntFlag[E] = distinct cint
Source   Edit  
PyFlags {.pure.} = enum
  A, B
asd asddsa Source   Edit  
PyFlags2 {.pure.} = enum
  A2 = 16, B2 = 32, B3 = 43
asd asddsa Source   Edit  

Consts

sizeofIntFlag = 4
internal Source   Edit  

Procs

proc `$`[E](x: IntFlag[E]): string
Source   Edit  
proc `&`(a`gensym4, b`gensym4: PyFlags): bool {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc `&`(a`gensym10, b`gensym10: PyFlags2): bool {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc `&`[E](a`gensym4: IntFlag[E]; b`gensym4: PyFlags): bool
Source   Edit  
proc `&`[E](a`gensym10: IntFlag[E]; b`gensym10: PyFlags2): bool
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  
proc `|`(a`gensym4, b`gensym4: PyFlags): IntFlag[PyFlags] {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
proc `|`(a`gensym10, b`gensym10: PyFlags2): IntFlag[PyFlags2] {....raises: [],
    tags: [], forbids: [].}
Source   Edit  

Converters

converter toIntFlag(x`gensym4: PyFlags): IntFlag[PyFlags] {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
converter toIntFlag(x`gensym10: PyFlags2): IntFlag[PyFlags2] {....raises: [],
    tags: [], forbids: [].}
Source   Edit  

Templates

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