summary refs log tree commit diff stats
path: root/compiler/condsyms.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-08-18 01:21:47 +0200
committerAraq <rumpf_a@web.de>2018-08-18 01:21:47 +0200
commit887987bb1aa27e8fe7dae3a5835b90c76b9fbb12 (patch)
tree4198ad57fed359c0587caff8ca4633917b708386 /compiler/condsyms.nim
parentced1c135719565c6675091673c598390805449c7 (diff)
downloadNim-887987bb1aa27e8fe7dae3a5835b90c76b9fbb12.tar.gz
every .experimental feature has a corrsponding 'nimHasX' define; fixes #8644; refs #8672
Diffstat (limited to 'compiler/condsyms.nim')
-rw-r--r--compiler/condsyms.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/condsyms.nim b/compiler/condsyms.nim
index 0955a84ae..ba1c42a74 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)