diff options
author | Damien George <damien.p.george@gmail.com> | 2014-08-16 14:32:06 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-08-16 14:32:06 +0100 |
commit | 8f81b5cb4bebf6aeaecf3f19a92be288f633c542 (patch) | |
tree | cdbef6f235845383e5a21cf9fb9f062f7fd1adf6 /py/builtintables.c | |
parent | b63be37be171dd9a88912e848a380fe035711d99 (diff) | |
download | micropython-8f81b5cb4bebf6aeaecf3f19a92be288f633c542.tar.gz micropython-8f81b5cb4bebf6aeaecf3f19a92be288f633c542.zip |
py: Put SystemExit in builtin namespace.
Also fix unix port so that SystemExit with no arg exits with value 0.
Diffstat (limited to 'py/builtintables.c')
-rw-r--r-- | py/builtintables.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/builtintables.c b/py/builtintables.c index e55e93b33a..08b6b16493 100644 --- a/py/builtintables.c +++ b/py/builtintables.c @@ -138,6 +138,7 @@ STATIC const mp_map_elem_t mp_builtin_object_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_StopIteration), (mp_obj_t)&mp_type_StopIteration }, { MP_OBJ_NEW_QSTR(MP_QSTR_SyntaxError), (mp_obj_t)&mp_type_SyntaxError }, { MP_OBJ_NEW_QSTR(MP_QSTR_SystemError), (mp_obj_t)&mp_type_SystemError }, + { MP_OBJ_NEW_QSTR(MP_QSTR_SystemExit), (mp_obj_t)&mp_type_SystemExit }, { MP_OBJ_NEW_QSTR(MP_QSTR_TypeError), (mp_obj_t)&mp_type_TypeError }, { MP_OBJ_NEW_QSTR(MP_QSTR_ValueError), (mp_obj_t)&mp_type_ValueError }, { MP_OBJ_NEW_QSTR(MP_QSTR_ZeroDivisionError), (mp_obj_t)&mp_type_ZeroDivisionError }, |