diff options
author | Araq <rumpf_a@web.de> | 2015-07-04 18:24:57 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-07-04 18:24:57 +0200 |
commit | b9ccd060130f570c501ecd96b261d8eb2a7f2cb3 (patch) | |
tree | 88ac9a3378eb86d0b4ed921135e4e643dbe8c32f /lib | |
parent | e38a989a6f84fdc245cb57e44143007d4e37eefa (diff) | |
download | Nim-b9ccd060130f570c501ecd96b261d8eb2a7f2cb3.tar.gz |
fixes bootstrapping problem
Diffstat (limited to 'lib')
-rw-r--r-- | lib/core/macros.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 49def06f0..20984bd00 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -144,9 +144,10 @@ proc `==`*(a, b: NimIdent): bool {.magic: "EqIdent", noSideEffect.} proc `==`*(a, b: NimNode): bool {.magic: "EqNimrodNode", noSideEffect.} ## compares two Nim nodes -proc sameType*(a, b: NimNode): bool {.magic: "SameNodeType", noSideEffect.} +proc sameType*(a, b: NimNode): bool {.magic: "SameNodeType", noSideEffect.} = ## compares two Nim nodes' types. Return true if the types are the same, ## eg. true when comparing alias with original type. + discard proc len*(n: NimNode): int {.magic: "NLen", noSideEffect.} ## returns the number of children of `n`. |