From 887987bb1aa27e8fe7dae3a5835b90c76b9fbb12 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 18 Aug 2018 01:21:47 +0200 Subject: [PATCH] every .experimental feature has a corrsponding 'nimHasX' define; fixes #8644; refs #8672 --- compiler/condsyms.nim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler/condsyms.nim b/compiler/condsyms.nim index 0955a84aee..ba1c42a741 100644 --- a/compiler/condsyms.nim +++ b/compiler/condsyms.nim @@ -12,6 +12,8 @@ import strtabs, platform, strutils, idents +from options import Feature + const catNone = "false" @@ -76,3 +78,7 @@ proc initDefines*(symbols: StringTableRef) = defineSymbol("nimAshr") defineSymbol("nimNoNilSeqs") defineSymbol("nimNoNilSeqs2") + + defineSymbol("nimHasNilSeqs") + for f in low(Feature)..high(Feature): + defineSymbol("nimHas" & $f)