Skip to content

Commit

Permalink
warn deprecation once
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySarnoff authored Mar 6, 2019
1 parent 2bcdd92 commit be1a822
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/type/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ macro df16_str(val::AbstractString)
end

# DEPRECATED
used_d64 = Ref(false)
const used_d64 = Ref(false)
const used_d32 = Ref(false)
used_d16 = false
const used_d16 = Ref(false)

macro d64_str(val::AbstractString)
if !used_d64[]
Expand All @@ -56,8 +56,8 @@ macro d32_str(val::AbstractString)
end

macro d16_str(val::AbstractString)
if !DoubleFloats.used_d16
DoubleFloats.used_d16 = true
if !used_d16[]
used_d16[] = true
@warn("d16\"x\" is deprecated, use df16\"x\"")
end
:(Double16($val))
Expand Down

0 comments on commit be1a822

Please sign in to comment.