Do not export GetProtoObject if the interface has no descendants

This commit is contained in:
Anthony Ramine 2015-12-16 00:39:22 +01:00
parent 432087c0ea
commit 05e456d0d2

View file

@ -2576,7 +2576,7 @@ class CGGetProtoObjectMethod(CGGetPerInterfaceObject):
"""
def __init__(self, descriptor):
CGGetPerInterfaceObject.__init__(self, descriptor, "GetProtoObject",
"PrototypeList::", pub=True)
"PrototypeList::", pub=descriptor.hasDescendants())
def definition_body(self):
return CGList([
@ -2593,7 +2593,7 @@ class CGGetConstructorObjectMethod(CGGetPerInterfaceObject):
"""
def __init__(self, descriptor):
CGGetPerInterfaceObject.__init__(self, descriptor, "GetConstructorObject",
"constructors::")
"constructors::", pub=descriptor.hasDescendants())
def definition_body(self):
return CGList([