Skip to content

Commit ef6d695

Browse files
committed
regen/embed.pl: Separate conditional into its own clause
This is in preparation for the next commit.
1 parent 4d463e3 commit ef6d695

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

regen/embed.pl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,13 @@ sub embed_h {
510510
my $ind= $level ? " " : "";
511511
$ind .= " " x ($level-1) if $level>1;
512512
my $inner_ind= $ind ? " " : " ";
513-
if ($flags !~ /[omM]/ or ($flags =~ /m/ && $flags =~ /p/)) {
513+
514+
if ($flags =~ /m/ && $flags =~ /p/) {
515+
my $full_name = full_name($func, $flags);
516+
next if $full_name eq $func; # Don't output a no-op.
517+
$ret = indent_define($func, $full_name, $ind);
518+
}
519+
elsif ($flags !~ /[omM]/) {
514520
my $argc = scalar @$args;
515521
if ($flags =~ /[T]/) {
516522
my $full_name = full_name($func, $flags);

0 commit comments

Comments
 (0)