From 7a4ddd24281a7e21eeaa697644418015cf4dd650 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 24 May 2014 23:32:19 +0100 Subject: Add SystemExit exception and use it in unix/ and stmhal/ ports. Addresses issue #598. --- py/objexcept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objexcept.c') 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) -- cgit v1.2.3