Skip to content
Browse files

remove #line directives from pmc2c. They serve no positive purpose th…

…at I can think of, they make debugging significantly more difficult, and they don't always disappear when I configure with --no-line-directives
  • Loading branch information...
1 parent 6eb1def commit 327b110f8a58ab0e09627fb6e82e7f87fa93f934 @Whiteknight Whiteknight committed Apr 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Parrot/Pmc2c/Emitter.pm
View
2 lib/Parrot/Pmc2c/Emitter.pm
@@ -130,7 +130,7 @@ sub annotate_worker {
$line = $self->{current_line} if $line == -1;
if (!$Parrot::Pmc2c::Pmc2cMain::OPTIONS->{nolines}) {
( my $filename_escaped = $filename ) =~ s|\\|/|g;
- $data .= "#line $line \"$filename_escaped\"\n";
+ $data .= "/* LINE $line \"$filename_escaped\" */\n";
}
$data .= $it->{data};
}

0 comments on commit 327b110

Please sign in to comment.
Something went wrong with that request. Please try again.