removed 'system.eval'

This commit is contained in:
Araq 2013-11-27 09:44:53 +01:00
commit f10a23e669
2 changed files with 8 additions and 7 deletions

View file

@ -494,7 +494,7 @@ const
from strutils import cmpIgnoreStyle, format from strutils import cmpIgnoreStyle, format
proc ExpectKind*(n: PNimrodNode; k: set[TNimrodNodeKind]) {.compileTime.} = proc expectKind*(n: PNimrodNode; k: set[TNimrodNodeKind]) {.compileTime.} =
assert n.kind in k, "Expected one of $1, got $2".format(k, n.kind) assert n.kind in k, "Expected one of $1, got $2".format(k, n.kind)
proc newProc*(name = newEmptyNode(); params: openarray[PNimrodNode] = []; proc newProc*(name = newEmptyNode(); params: openarray[PNimrodNode] = [];

View file

@ -2619,6 +2619,7 @@ type
PNimrodNode* {.magic: "PNimrodNode".} = ref TNimrodNode PNimrodNode* {.magic: "PNimrodNode".} = ref TNimrodNode
## represents a Nimrod AST node. Macros operate on this type. ## represents a Nimrod AST node. Macros operate on this type.
when false:
template eval*(blk: stmt): stmt = template eval*(blk: stmt): stmt =
## executes a block of code at compile time just as if it was a macro ## executes a block of code at compile time just as if it was a macro
## optionally, the block can return an AST tree that will replace the ## optionally, the block can return an AST tree that will replace the