diff options
author | Araq <rumpf_a@web.de> | 2012-10-05 12:10:01 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-10-05 12:10:01 +0200 |
commit | 350e178d837a212755b729bb82225193acef5734 (patch) | |
tree | bd94d64c55eeccdf8479c967bc77bac2500336af /lib/system.nim | |
parent | 01dfcf63106fb18239a1c6dabf551405c33b6e7e (diff) | |
parent | f28b7be6a37d566df64cb944c1687e014be8d083 (diff) | |
download | Nim-350e178d837a212755b729bb82225193acef5734.tar.gz |
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-x | lib/system.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/system.nim b/lib/system.nim index 99f1e621a..9d7652c94 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -2349,9 +2349,8 @@ template eval*(blk: stmt): stmt = ## 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 ## eval expression - block: - macro payload(x: stmt): stmt = blk - payload() + macro payload: stmt {.gensym.} = blk + payload() proc insert*(x: var string, item: string, i = 0) {.noSideEffect.} = ## inserts `item` into `x` at position `i`. |