mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
Add SystemExit exception and use it in unix/ and stmhal/ ports.
Addresses issue #598.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user