Skip to content

Commit 8d9da04

Browse files
committed
Compat flag for adding source location argument to macros
JuliaLang/julia#21746
1 parent 594fafc commit 8d9da04

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Compat.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,4 +1494,7 @@ end
14941494

14951495
include("to-be-deprecated.jl")
14961496

1497+
# https://github.com/JuliaLang/julia/pull/21746
1498+
const macros_have_sourceloc = VERSION > v"0.7-" && length(:(@test).args) == 2
1499+
14971500
end # module Compat

0 commit comments

Comments
 (0)