ruby: fix vtable for linux destructor

develop
jj 2012-05-03 19:19:58 +02:00
parent ba1e3c4b23
commit 138461634e
1 changed files with 3 additions and 2 deletions

@ -201,7 +201,7 @@ sub render_global_class {
push @lines_rb, "sizeof $sz";
push @lines_rb, "rtti_classname :$rtti_name" if $rtti_name;
render_struct_fields($type, "$cppns");
my $vms = $type->findnodes('child::virtual-methods')->[0];
my $vms = $type->findnodes('child::virtual-methods')->[0];
render_class_vmethods($vms) if $vms;
};
push @lines_rb, "end\n";
@ -243,9 +243,10 @@ sub render_class_vmethods {
};
push @lines_rb, 'end';
}
# on linux, the destructor uses 2 entries
$voff += 4 if $meth->getAttribute('is-destructor') and $^O =~ /linux/i;
$voff += 4;
}
}
sub render_global_objects {