Skip to content

Commit 40edb65

Browse files
MaxenceGollieramontoison
authored andcommitted
add a function call in wrappedallocs macro
Fixes allocation isse on julia pre
1 parent 4541eea commit 40edb65

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/test_diag.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ macro wrappedallocs(expr)
2929
argnames = [gensym() for a in expr.args]
3030
quote
3131
function g($(argnames...))
32+
$(Expr(expr.head, argnames...))
3233
@allocated $(Expr(expr.head, argnames...))
3334
end
3435
$(Expr(:call, :g, [esc(a) for a in expr.args]...))

0 commit comments

Comments
 (0)