diff --git a/base/base.jl b/base/base.jl index 48dfed75ad0c1..a56a14f2cf605 100644 --- a/base/base.jl +++ b/base/base.jl @@ -146,11 +146,10 @@ end esc(e::ANY) = Expr(:escape, e) macro boundscheck(yesno,blk) - quote - $(Expr(:boundscheck,yesno)) - $(esc(blk)) - $(Expr(:boundscheck,:pop)) - end + # hack: use this syntax since it avoids introducing line numbers + :($(Expr(:boundscheck,yesno)); + $(esc(blk)); + $(Expr(:boundscheck,:pop))) end macro inbounds(blk)