Commit e816f827 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix cdef extern classes

parent fde73d4e
......@@ -27,9 +27,10 @@ def recurse_vtab_check_inheritance(entry, b, dict):
return False
if base.type.base_type.vtabstruct_cname == b.type.vtabstruct_cname:
return True
if base.type.base_type.typedef_flag:
return True
try:
base = dict[base.type.base_type.vtabstruct_cname]
except KeyError:
return True
return False
def recurse_vtabslot_check_inheritance(entry, b, dict):
......@@ -39,9 +40,10 @@ def recurse_vtabslot_check_inheritance(entry, b, dict):
return False
if base.type.base_type.objstruct_cname == b.type.objstruct_cname:
return True
if base.type.base_type.typedef_flag:
return True
try:
base = dict[base.type.base_type.objstruct_cname]
except KeyError:
return True
return False
......
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