def AddConstEx(enum_id, name, value, bmask):
    if bmask < 0:
        bmask &= BADADDR
    return idaapi.add_enum_member(enum_id, name, value, bmask)
Add a member of enum - a symbolic constant
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/AddConstEx