Commit e3838e42 authored by Stefan Behnel's avatar Stefan Behnel

implement __hash__() and __eq__() for ctypedefs by delegating to the base type

parent b23d1c3b
......@@ -333,6 +333,12 @@ class CTypedefType(BaseType):
def __repr__(self):
return "<CTypedefType %s>" % self.typedef_cname
def __hash__(self):
return hash(self.typedef_base_type)
def __eq__(self, other):
return other == self.typedef_base_type
def __str__(self):
return self.typedef_name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment