~gjc/pybindgen/old-trunk

« back to all changes in this revision

Viewing changes to pybindgen/gccxmlparser.py

  • Committer: Gustavo J. A. M. Carneiro
  • Date: 2008-01-02 15:16:15 UTC
  • Revision ID: gjc@gnome.org-20080102151615-clv6n97wo7ct5nkb
Don't crash on Class** types

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
                if isinstance(type_tmp, cpptypes.const_t):
116
116
                    assert is_pointer
117
117
                    pointer_is_const = True
 
118
                elif isinstance(type_tmp, cpptypes.pointer_t):
 
119
                    return (None, is_const, is_pointer, is_reference, pointer_is_const)
118
120
                else:
119
 
                    raise AssertionError
 
121
                    raise AssertionError, "found %r for type %s" % (type_tmp, type_info.decl_string)
120
122
            assert len(decomposed) == 0
121
123
            return (cpp_class, is_const, is_pointer, is_reference, pointer_is_const)
122
124
        return (None, is_const, is_pointer, is_reference, pointer_is_const)