summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-06-05 14:55:47 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-06-05 14:55:47 +0200
commitefbf43d4a9b9ffdee5db95749d0d992bc16bb350 (patch)
tree31843b75327e73eb41df0e09343757246282f53b /lib/core
parent92308625347493b37951cb25e944c650a909565a (diff)
downloadNim-efbf43d4a9b9ffdee5db95749d0d992bc16bb350.tar.gz
intVal works now on enum field symbols (#11403)
* intVal works now on enum field symbols

* disable flakey titerators test
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/macros.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index 77e707464..87e9e4b94 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -226,8 +226,10 @@ proc kind*(n: NimNode): NimNodeKind {.magic: "NKind", noSideEffect.}
   ## returns the `kind` of the node `n`.
 
 proc intVal*(n: NimNode): BiggestInt {.magic: "NIntVal", noSideEffect.}
+  ## Returns an integer value from any integer literal or enum field symbol.
 
 proc floatVal*(n: NimNode): BiggestFloat {.magic: "NFloatVal", noSideEffect.}
+  ## Returns a float from any floating point literal.
 
 {.push warnings: off.}