From 0d2485c31ca3de855992ab071e7ca8bb90eefdc5 Mon Sep 17 00:00:00 2001 From: Maxence Gollier Date: Sun, 7 Dec 2025 10:08:12 -0500 Subject: [PATCH] fix wrappedallcos macro for julia pre --- test/test_allocs.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_allocs.jl b/test/test_allocs.jl index 2a638c0d..591fb58f 100644 --- a/test/test_allocs.jl +++ b/test/test_allocs.jl @@ -33,6 +33,7 @@ macro wrappedallocs(expr) kwargs_dict = Dict{Symbol, Any}(a.args[1] => a.args[2] for a in kwargs if a.head == :kw) quote function g($(argnames...); kwargs_dict...) + $(Expr(expr.head, argnames..., kwargs...)) # Call the function twice to make the allocated macro more stable @allocated $(Expr(expr.head, argnames..., kwargs...)) end $(Expr(:call, :g, [esc(a) for a in args]...))