File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -495,7 +495,8 @@ function is_simply_call(@nospecialize ex)
495
495
for a in ex. args
496
496
a isa QuoteNode && continue
497
497
a isa Symbol && continue
498
- Base. is_self_quoting (a) && continue
498
+ is_self_quoting (a) && continue
499
+ is_quoted (a) && continue
499
500
return false
500
501
end
501
502
return true
@@ -516,6 +517,7 @@ julia> @allocated rand(10^6)
516
517
```
517
518
"""
518
519
macro allocated (ex)
520
+ ex = macroexpand (__module__, ex)
519
521
if ! is_simply_call (ex)
520
522
ex = :((() -> $ ex)())
521
523
end
@@ -541,6 +543,7 @@ julia> @allocations rand(10^6)
541
543
This macro was added in Julia 1.9.
542
544
"""
543
545
macro allocations (ex)
546
+ ex = macroexpand (__module__, ex)
544
547
if ! is_simply_call (ex)
545
548
ex = :((() -> $ ex)())
546
549
end
You can’t perform that action at this time.
0 commit comments