This commit is contained in:
Andrii Riabushenko 2019-07-25 23:07:43 +01:00
commit 95856ab8d3
3 changed files with 30 additions and 2 deletions

View file

@ -321,8 +321,12 @@ proc processNote(c: PContext, n: PNode) =
let x = c.semConstBoolExpr(c, n[1])
n.sons[1] = x
if x.kind == nkIntLit and x.intVal != 0: incl(c.config.notes, nk)
else: excl(c.config.notes, nk)
if x.kind == nkIntLit and x.intVal != 0:
incl(c.config.notes, nk)
incl(c.optionStack[^1].notes, nk)
else:
excl(c.config.notes, nk)
excl(c.optionStack[^1].notes, nk)
else:
invalidPragma(c, n)