diff options
Diffstat (limited to 'lib/system.nim')
-rw-r--r-- | lib/system.nim | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/system.nim b/lib/system.nim index 34b67267f..5bd230e4c 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2619,12 +2619,13 @@ type PNimrodNode* {.magic: "PNimrodNode".} = ref TNimrodNode ## represents a Nimrod AST node. Macros operate on this type. -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 - macro payload: stmt {.gensym.} = blk - payload() +when false: + 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 + macro payload: stmt {.gensym.} = blk + payload() when hostOS != "standalone": proc insert*(x: var string, item: string, i = 0) {.noSideEffect.} = |