every .experimental feature has a corrsponding 'nimHasX' define; fixes #8644; refs #8672

This commit is contained in:
Araq
2018-08-18 01:21:47 +02:00
parent ced1c13571
commit 887987bb1a

View File

@@ -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)