Skip to content

Commit ff7aa41

Browse files
committed
regen/HeaderParser: Pass line embed.fnc line number on
This adds the line number a definition is in the embed.fnc file to the structure describing the definition, for potential downstream use.
1 parent 3436e5b commit ff7aa41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

regen/HeaderParser.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ sub tidy_embed_fnc_entry {
794794
return_type => $ret,
795795
name => $name,
796796
args => \@args,
797+
start_line_num => $line_data->{start_line_num},
797798
);
798799
$line =~ s/\s+\z/\n/;
799800
$line_data->{line}= $line;
@@ -1587,6 +1588,7 @@ sub EmbedLine::flags { $_[0]->{flags} }
15871588
sub EmbedLine::return_type { $_[0]->{return_type} }
15881589
sub EmbedLine::name { $_[0]->{name} }
15891590
sub EmbedLine::args { $_[0]->{args} } # array ref
1591+
sub EmbedLine::line_num { $_[0]->{start_line_num} }
15901592

15911593
1;
15921594

0 commit comments

Comments
 (0)