We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 753a97f commit a9597f2Copy full SHA for a9597f2
test/test_allocs.jl
@@ -26,13 +26,13 @@ allocate:
26
```
27
"""
28
macro wrappedallocs(expr)
29
- argnames = [gensym() for a in expr.args]
30
- quote
31
- function g($(argnames...))
32
- @allocated $(Expr(expr.head, argnames...))
33
- end
34
- $(Expr(:call, :g, [esc(a) for a in expr.args]...))
+ argnames = [gensym() for a in expr.args]
+ quote
+ function g($(argnames...))
+ @allocated $(Expr(expr.head, argnames...))
35
end
+ $(Expr(:call, :g, [esc(a) for a in expr.args]...))
+ end
36
37
38
@testset "allocs" begin
0 commit comments