summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/obj.h1
-rw-r--r--py/objexcept.c2
-rw-r--r--py/qstrdefs.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/py/obj.h b/py/obj.h
index 2df597de75..2a9ed3acd3 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -344,6 +344,7 @@ extern const mp_obj_type_t mp_type_RuntimeError;
extern const mp_obj_type_t mp_type_StopIteration;
extern const mp_obj_type_t mp_type_SyntaxError;
extern const mp_obj_type_t mp_type_SystemError;
+extern const mp_obj_type_t mp_type_SystemExit;
extern const mp_obj_type_t mp_type_TypeError;
extern const mp_obj_type_t mp_type_ValueError;
extern const mp_obj_type_t mp_type_ZeroDivisionError;
diff --git a/py/objexcept.c b/py/objexcept.c
index 0006554a85..7583d07431 100644
--- a/py/objexcept.c
+++ b/py/objexcept.c
@@ -159,7 +159,7 @@ const mp_obj_type_t mp_type_ ## exc_name = { \
// List of all exceptions, arranged as in the table at:
// http://docs.python.org/3.3/library/exceptions.html
MP_DEFINE_EXCEPTION_BASE(BaseException)
-//MP_DEFINE_EXCEPTION(SystemExit, BaseException)
+MP_DEFINE_EXCEPTION(SystemExit, BaseException)
//MP_DEFINE_EXCEPTION(KeyboardInterrupt, BaseException)
MP_DEFINE_EXCEPTION(GeneratorExit, BaseException)
MP_DEFINE_EXCEPTION(Exception, BaseException)
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index 1de0989190..2d4ddfea29 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -102,6 +102,7 @@ Q(OverflowError)
Q(RuntimeError)
Q(SyntaxError)
Q(SystemError)
+Q(SystemExit)
Q(TypeError)
Q(UnboundLocalError)
Q(ValueError)