@ -219,9 +219,14 @@ sub render_item_global {
my ($item, $cppvar) = @_;
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 {
push @lines_rb, "global :$rbname";
}
sub render_item_number {
@ -39,6 +39,7 @@ class Compound < MemStruct
def stl_vector(tglen=nil)
tg = yield if tglen
tg = tg._tg if tg.kind_of?(Pointer) # Vector.at(4) already dereferences
case tglen
when 1; StlVector8.new(tg)
when 2; StlVector16.new(tg)