From 1e6aef62ba8e81212667e2f1fa6b50c48ee98a91 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 23 Feb 2015 10:16:20 +0100 Subject: macros.PNimrodNode is now NimNode --- lib/system.nim | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'lib/system.nim') diff --git a/lib/system.nim b/lib/system.nim index f89f407f0..abf31c821 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3126,9 +3126,17 @@ proc shallow*(s: var string) {.noSideEffect, inline.} = s.reserved = s.reserved or seqShallowFlag type - TNimrodNode {.final.} = object - PNimrodNode* {.magic: "PNimrodNode".} = ref TNimrodNode - ## represents a Nim AST node. Macros operate on this type. + NimNodeObj = object + +when defined(nimnode): + type + NimNode* {.magic: "PNimrodNode".} = ref NimNodeObj + ## represents a Nim AST node. Macros operate on this type. + {.deprecated: [PNimrodNode: NimNode].} +else: + type + PNimrodNode* {.magic: "PNimrodNode".} = ref NimNodeObj + ## represents a Nim AST node. Macros operate on this type. when false: template eval*(blk: stmt): stmt = -- cgit 1.4.1-2-gfad0