From 872ebb80936eb0154ab30699b31cb1bddc66b44e 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..e488371e9 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