Skip to content

Commit 1ce5f5e

Browse files
committed
reproducible pp_line_number
1 parent 4231005 commit 1ce5f5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/PDL/PP.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ sub _pp_line_number_file {
662662
confess "pp_line_numbers called with undef" if !defined $string;
663663
# The line needs to be incremented by one for the bookkeeping to work
664664
$line++;
665+
$filename = 'lib/PDL/PP.pm' if $filename eq __FILE__;
665666
$filename =~ s/\\/\\\\/g; # Escape backslashes
666667
my @to_return = "\nPDL_LINENO_START $line \"$filename\"\n";
667668
# Look for broadcastloops and loops and add # line directives

0 commit comments

Comments
 (0)