Skip to content

Commit

Permalink
Merge pull request #42 from bankofcanada/dev
Browse files Browse the repository at this point in the history
Dev towards 0.6.1
  • Loading branch information
bbejanov authored Jul 18, 2023
2 parents e0fc92a + f2059ba commit 515c9a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/recursive.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ macro rec(arg_rng, arg_eqn)
end
return e
end
return esc(quote
for $(ind) in $(rng)
$(arg_eqn)
end
end)
# for loop with empty body
ret = :(for $(ind) in $(rng) end)
# replace body with arg_eqn, keeping the original source line
ret.args[end] = Expr(:block, __source__, arg_eqn)
return esc(ret)
end

0 comments on commit 515c9a4

Please sign in to comment.