def genDefinitionsAliasSrc(definitions):
    for line in [('#define %s\t%s' % (definition.name, definitions[definition].name)) for definition in definitions]:
        if ((definition.value != definitions[definition].value) and (definition.value != definitions[definition].name)):
            raise Exception(('Value of %s (%s) is different than core definition value %s (%s).' % (definition.name, definition.value, definitions[definition].name, definitions[definition].value)))
        (yield line)
def genDefinitionsAliasSrc(definitions):
    for line in [('#define %s\t%s' % (definition.name, definitions[definition].name)) for definition in definitions]:
        if ((definition.value != definitions[definition].value) and (definition.value != definitions[definition].name)):
            raise Exception(('Value of %s (%s) is different than core definition value %s (%s).' % (definition.name, definition.value, definitions[definition].name, definitions[definition].value)))
        (yield line)