code: def _gettype(self):
          '''
          Return current type of this struct
          
          :returns: a typedef object (e.g. nstruct)
          
          '''
          current = self
          lastname = getattr(current._parser, 'typedef', None)
          while hasattr(current, '_sub'):
              current = current._sub
              tn = getattr(current._parser, 'typedef', None)
              if tn is not None:
                  lastname = tn
          return lastnamf _gettype(self):
          '''
          Return current type of this struct
          
          :returns: a typedef object (e.g. nstruct)
          
          '''
          current = self
          lastname = getattr(current._parser, 'typedef', None)
          while hasattr(current, '_sub'):
              current = current._sub
              tn = getattr(current._parser, 'typedef', None)
              if tn is not None:
                  lastname = tn
          return lastname
docs: Return current type of this struct
          
          :returns: a typedef object (e.g. nstruct)