Skip to content

Commit

Permalink
macro might work
Browse files Browse the repository at this point in the history
  • Loading branch information
tawheeler committed Feb 7, 2021
1 parent e84aacf commit 3d15603
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/PGFPlots.jl
Expand Up @@ -13,9 +13,14 @@ using Discretizers
using Printf

# Define isnothing
if VERSION < v"1.1"
isnothing(x) = x === nothing
macro define_isnothing_if_needed()
if VERSION < v"1.1"
return :( isnothing(x) = x === nothing )
else
return :()
end
end
@define_isnothing_if_needed

# load dynamic dependencies
function __init__()
Expand Down

0 comments on commit 3d15603

Please sign in to comment.