Skip to content

Commit

Permalink
zap object-constructing SYNOPSIS in submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Mar 6, 2023
1 parent 4f98cc5 commit fd37672
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions genpp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -315,14 +315,11 @@ sub genheader {
my %class2doc = map +($_->[0]=>$_->[1]), @classdata;
my @classes = sort keys %class2doc;
my $descrip_label = @classes ? join(', ', @classes) : $last;
my $synopsis = join '', map "\n \$obj = PDL::OpenCV::$_->new@{[
@{$extra_cons_args{$_} || []} ? '('.join(', ', map qq{\$$_->[1]}, @{$extra_cons_args{$_} || []}).')' : ''
]};", @classes;
pp_addpm({At=>'Top'},<<"EOPM");
=head1 NAME
\nPDL::OpenCV::$last - PDL bindings for OpenCV $descrip_label
\n=head1 SYNOPSIS
\n use PDL::OpenCV::$last;$synopsis
\n use PDL::OpenCV::$last;
\n=cut
\nuse strict;
use warnings;
Expand Down

0 comments on commit fd37672

Please sign in to comment.