ruby: add raw_rtti_classname to read real classname from RTTI info

develop
jj 2012-09-13 19:07:37 +02:00
parent 19a150fb38
commit a9ce19b826
1 changed files with 1 additions and 0 deletions

@ -132,6 +132,7 @@ module DFHack
def _fields_ancestors ; self.class._fields_ancestors.to_a ; end def _fields_ancestors ; self.class._fields_ancestors.to_a ; end
def _field_names ; _fields_ancestors.map { |n, o, s| n } ; end def _field_names ; _fields_ancestors.map { |n, o, s| n } ; end
def _rtti_classname ; self.class._rtti_classname ; end def _rtti_classname ; self.class._rtti_classname ; end
def _raw_rtti_classname ; df.get_rtti_classname(df.get_vtable_ptr(@_memaddr)) if self.class._rtti_classname ; end
def _sizeof ; self.class._sizeof ; end def _sizeof ; self.class._sizeof ; end
def ==(o) ; o.kind_of?(Compound) and o._memaddr == _memaddr ; end def ==(o) ; o.kind_of?(Compound) and o._memaddr == _memaddr ; end