diff options
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-x | lib/system.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim index c92c86443..2644d6fbb 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -2220,6 +2220,11 @@ proc shallow*(s: var string) {.noSideEffect, inline.} = # const res = e # res +type + TNimrodNode {.final.} = object + 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 ## optonally, the block can return an AST tree that will replace the |