Skip to content

Commit

Permalink
2.5.1: rewrites seem safe
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed May 15, 2021
1 parent d32c207 commit fabeb48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions balls.nim
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,13 @@ proc combineLiterals(n: NimNode): NimNode =
discard

result = n
# don't rewrite release code; it's too risky/slow
when not defined(release):
while true:
let preprocess = result
result = rewrite(result, collapser)
result = rewrite(result, combiner)
result = rewrite(result, concatenator)
if preprocess == result:
break
while true:
let preprocess = result
result = rewrite(result, collapser)
result = rewrite(result, combiner)
result = rewrite(result, concatenator)
if preprocess == result:
break

proc comment(n: NimNode): NimNode =
## render a comment with the given stringish node
Expand Down
2 changes: 1 addition & 1 deletion balls.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "2.5.0"
version = "2.5.1"
author = "disruptek"
description = "a unittest framework with balls 🔴🟡🟢"
license = "MIT"
Expand Down

0 comments on commit fabeb48

Please sign in to comment.