diff options
author | Arne Döring <arne.doering@gmx.net> | 2019-06-05 14:55:47 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-06-05 14:55:47 +0200 |
commit | efbf43d4a9b9ffdee5db95749d0d992bc16bb350 (patch) | |
tree | 31843b75327e73eb41df0e09343757246282f53b /lib/core | |
parent | 92308625347493b37951cb25e944c650a909565a (diff) | |
download | Nim-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.nim | 2 |
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.} |