summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-09-03 01:15:40 +0200
committerAraq <rumpf_a@web.de>2017-09-03 01:15:40 +0200
commit7132b04f44a9d801773d3f2423e41c5ecfa7c978 (patch)
treefef2a12d4a6669f01d8d9d5d0239501bf6368ac2 /lib/core
parent2d8e97ee03cab9ad7442bed01e14360269c516bb (diff)
downloadNim-7132b04f44a9d801773d3f2423e41c5ecfa7c978.tar.gz
equality check on NimSym has now support in the VM; refs #6139
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/macros.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index a7d31ad62..3cfefb5c1 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -150,6 +150,9 @@ proc `==`*(a, b: NimIdent): bool {.magic: "EqIdent", noSideEffect.}
 proc `==`*(a, b: NimNode): bool {.magic: "EqNimrodNode", noSideEffect.}
   ## compares two Nim nodes
 
+proc `==`*(a, b: NimSym): bool {.magic: "EqNimrodNode", noSideEffect.}
+  ## compares two Nim symbols
+
 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.