def genBitfieldSrc(bitfield):
    if (len(bitfield.values) > 0):
        (yield ('enum %s' % getBitEnumNameForBitfield(bitfield.name)))
        (yield '{')
        for line in indentLines([('\t%s\t= %s,' % v) for v in bitfield.values]):
            (yield line)
        (yield '};')
    (yield ('typedef deUint32 %s;' % bitfield.name))
def genBitfieldSrc(bitfield):
    if (len(bitfield.values) > 0):
        (yield ('enum %s' % getBitEnumNameForBitfield(bitfield.name)))
        (yield '{')
        for line in indentLines([('\t%s\t= %s,' % v) for v in bitfield.values]):
            (yield line)
        (yield '};')
    (yield ('typedef deUint32 %s;' % bitfield.name))