def writeCompositeTypes(api, filename):

    def gen():
        for type in api.compositeTypes:
            type.checkAliasValidity()
            if (not type.isAlias):
                for line in genCompositeTypeSrc(type):
                    (yield line)
            (yield '')
    writeInlFile(filename, INL_HEADER, gen())
def writeCompositeTypes(api, filename):

    def gen():
        for type in api.compositeTypes:
            type.checkAliasValidity()
            if (not type.isAlias):
                for line in genCompositeTypeSrc(type):
                    (yield line)
            (yield )
    writeInlFile(filename, INL_HEADER, gen())