Skip to content

Commit

Permalink
don't publicly export structs and unions with no names
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed May 28, 2024
1 parent 3d3a2fa commit 4c4c1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StructFields.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ sub with_struct_block(&$;$%) {

my $is_union = is_attr_true($tag,'is-union');
my $kwd = ($is_union ? "union" : "struct");
my $exp = $export_prefix; #$flags{-export} ? $export_prefix : '';
my $exp = $name ? $export_prefix : '';
header_ref("Export.h");
header_ref("DataDefs.h");
my $prefix = $kwd.' '.$exp.($name ? $name.' ' : '');
Expand Down

0 comments on commit 4c4c1d6

Please sign in to comment.