def AddConstEx(enum_id, name, value, bmask):
    if bmask < 0:
        bmask &= BADADDR
    return idaapi.add_enum_member(enum_id, name, value, bmask)
Checks that bound checking works.
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/AddConstEx--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/thrift_util_test.py/TestJsonable2Thrift.test_limits