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 8d9da04
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 8d9da04

Please sign in to comment.