Skip to content

Commit

Permalink
FIX: generated RL defines were not counting with possibility of varia…
Browse files Browse the repository at this point in the history
…dic arguments (like in RL_PRINT)
  • Loading branch information
Oldes committed Oct 21, 2021
1 parent cd463fe commit 5023828
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion make/tools/make-reb-lib.reb
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ memit: func [d /nol] [
]

count: func [s c /local n] [
s: trim/all copy s
if find ["()" "(void)"] s [return "(void)"]
out: copy "(a"
n: 1
while [s: find/tail s c][
repend out [#"," #"a" + n]
repend out [#"," either s = "...)" ["__VA_ARGS__"][#"a" + n]]
n: n + 1
]
append out ")"
Expand Down

0 comments on commit 5023828

Please sign in to comment.