Merge pull request #3286 from yglukhov/when-nimvm

when nimvm stmt
This commit is contained in:
Andreas Rumpf 2015-09-05 10:03:35 +02:00
commit 63a6bfce71
10 changed files with 80 additions and 14 deletions

View file

@ -1173,6 +1173,10 @@ const
## "i386", "alpha", "powerpc", "powerpc64", "powerpc64el", "sparc",
## "amd64", "mips", "mipsel", "arm", "arm64".
nimvm* {.magic: "Nimvm".}: bool = false
## may be used only in "when" expression.
## It is true in Nim VM context and false otherwise
seqShallowFlag = low(int)
proc compileOption*(option: string): bool {.