Skip to content

Commit

Permalink
Compat flag for adding source location argument to macros
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed May 10, 2017
1 parent 594fafc commit 872ebb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 872ebb8

Please sign in to comment.