Skip to content

Commit

Permalink
Add deprecation for 2-arg @boundscheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejohnson committed Jan 6, 2016
1 parent 6646136 commit d45d8cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -936,3 +936,11 @@ end

#14335
@deprecate super(T::DataType) supertype(T)

#14474
macro boundscheck(yesno,blk)
depwarn("The meaning of `@boundscheck` has changed. It now indicates that the provided code block performs bounds checking, and may be elided when inbounds.", symbol("@boundscheck"))
if yesno === true
:(@inbounds $(esc(blk)))
end
end

0 comments on commit d45d8cc

Please sign in to comment.