make msgs.nim more robust
This commit is contained in:
parent
50e1a489c0
commit
6dbfdecd74
1 changed files with 4 additions and 0 deletions
|
|
@ -474,6 +474,10 @@ const
|
|||
hintMin* = hintSuccess
|
||||
hintMax* = high(TMsgKind)
|
||||
|
||||
static:
|
||||
doAssert HintsToStr.len == ord(hintMax) - ord(hintMin) + 1
|
||||
doAssert WarningsToStr.len == ord(warnMax) - ord(warnMin) + 1
|
||||
|
||||
type
|
||||
TNoteKind* = range[warnMin..hintMax] # "notes" are warnings or hints
|
||||
TNoteKinds* = set[TNoteKind]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue