From 8d9da0419044f2f01397c33a2a3fd9668ccaa21b Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Tue, 9 May 2017 22:40:32 -0400 Subject: [PATCH] Compat flag for adding source location argument to macros JuliaLang/julia#21746 --- src/Compat.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Compat.jl b/src/Compat.jl index 8679e7e08..7e49348d4 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -1494,4 +1494,7 @@ end include("to-be-deprecated.jl") +# https://github.com/JuliaLang/julia/pull/21746 +const macros_have_sourceloc = VERSION > v"0.7-" && length(:(@test).args) == 2 + end # module Compat