def GetFirstConst(enum_id, bmask):
    if bmask < 0:
        bmask &= BADADDR
    return idaapi.get_first_enum_member(enum_id, bmask)
Get first constant in the enum
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetFirstConst