Skip to content

Commit

Permalink
Merge pull request #809 from JuliaDocs/fe/backport
Browse files Browse the repository at this point in the history
Backports for 0.19.6
  • Loading branch information
fredrikekre authored Aug 20, 2018
2 parents deb9c5e + 89b60b4 commit bfa7b6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DocChecks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -638,17 +638,17 @@ linkcheck_ismatch(r::String, url) = (url == r)
linkcheck_ismatch(r::Regex, url) = occursin(r, url)

function disable_color(func)
orig = setcolor!(false)
color = Base.have_color
try
@eval Base have_color = false
func()
finally
setcolor!(orig)
@eval Base have_color = $color
end
end

const CAN_INLINE = Ref(true)
function __init__()
global setcolor! = Core.eval(Base, :(x -> (y = have_color; global have_color = x; y)))
CAN_INLINE[] = Base.JLOptions().can_inline == 0 ? false : true
end

Expand Down

0 comments on commit bfa7b6b

Please sign in to comment.