Skip to content

Commit

Permalink
Update inlining message, and fix poplinenum.
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Aug 27, 2015
1 parent eb867a9 commit 013f906
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions base/cartesian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ function poplinenum(ex::Expr)
return ex.args[1]
elseif length(ex.args) == 2 && isa(ex.args[1], LineNumberNode)
return ex.args[2]
elseif (length(ex.args) == 2 && isa(ex.args[1], Expr) && ex.args[1].head == :line)
return ex.args[2]
end
end
ex
Expand Down
2 changes: 1 addition & 1 deletion base/replutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ function show_trace_entry(io, fname, file, line, inlinedfile, inlinedline, n)

if (inlinedfile != symbol(""))
print(io, " at ", inlinedfile, ":", inlinedline)
print(io, " \n [ thrown by inlined function defined at ]\n ")
print(io, " \n by code inlined from: \n")
else
print(io, " at ")
end
Expand Down

0 comments on commit 013f906

Please sign in to comment.