def genEnumSrc(enum):
    (yield ('enum %s' % enum.name))
    (yield '{')
    for line in indentLines([('\t%s\t= %s,' % v) for v in enum.values]):
        (yield line)
    if areEnumValuesLinear(enum):
        (yield '')
        (yield ('\t%s_LAST' % getEnumValuePrefix(enum)))
    (yield '};')
def genEnumSrc(enum):
    (yield ('enum %s' % enum.name))
    (yield '{')
    for line in indentLines([('\t%s\t= %s,' % v) for v in enum.values]):
        (yield line)
    if areEnumValuesLinear(enum):
        (yield )
        (yield ('\t%s_LAST' % getEnumValuePrefix(enum)))
    (yield '};')