Skip to content

Commit

Permalink
reproducible pp_line_number
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jan 23, 2025
1 parent 4231005 commit 1ce5f5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/PDL/PP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ sub _pp_line_number_file {
confess "pp_line_numbers called with undef" if !defined $string;
# The line needs to be incremented by one for the bookkeeping to work
$line++;
$filename = 'lib/PDL/PP.pm' if $filename eq __FILE__;
$filename =~ s/\\/\\\\/g; # Escape backslashes
my @to_return = "\nPDL_LINENO_START $line \"$filename\"\n";
# Look for broadcastloops and loops and add # line directives
Expand Down

0 comments on commit 1ce5f5e

Please sign in to comment.