|
|
@ -219,10 +219,15 @@ sub render_item_global {
|
|
|
|
my ($item, $cppvar) = @_;
|
|
|
|
my ($item, $cppvar) = @_;
|
|
|
|
|
|
|
|
|
|
|
|
my $typename = $item->getAttribute('type-name');
|
|
|
|
my $typename = $item->getAttribute('type-name');
|
|
|
|
my $rbname = rb_ucase($typename);
|
|
|
|
my $subtype = $item->getAttribute('ld:subtype');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($subtype and $subtype eq 'enum') {
|
|
|
|
|
|
|
|
render_item_number($item, $cppvar);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
my $rbname = rb_ucase($typename);
|
|
|
|
push @lines_rb, "global :$rbname";
|
|
|
|
push @lines_rb, "global :$rbname";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sub render_item_number {
|
|
|
|
sub render_item_number {
|
|
|
|
my ($item, $cppvar) = @_;
|
|
|
|
my ($item, $cppvar) = @_;
|
|
|
|