New {.experimental: "ForLoopMacros".} support (#62)
* Bug https://github.com/nim-lang/Nim/issues/8676 and da41fc1801
* Use a commandline flag
This commit is contained in:
parent
215293756a
commit
fc27e86061
|
@ -12,8 +12,6 @@ import ./datatypes, ./conversion, macros
|
|||
# #########################################################################
|
||||
# Multi-precision ints to compile-time array of words
|
||||
|
||||
{.experimental: "ForLoopMacros".}
|
||||
|
||||
proc asWordsImpl(x: NimNode, current_path: NimNode, result: var NimNode) =
|
||||
## Transforms an UintImpl/IntImpl into an array of words
|
||||
## at compile-time. Recursive implementation.
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
import ./datatypes, ./as_words
|
||||
|
||||
|
||||
func `not`*(x: UintImpl): UintImpl {.inline.}=
|
||||
## Bitwise complement of unsigned integer x
|
||||
for wr, wx in asWords(result, x):
|
||||
|
|
Loading…
Reference in New Issue