diff options
Diffstat (limited to 'py/objexcept.c')
-rw-r--r-- | py/objexcept.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/objexcept.c b/py/objexcept.c index de3b0abe1..b5c169327 100644 --- a/py/objexcept.c +++ b/py/objexcept.c @@ -224,6 +224,8 @@ const mp_obj_type_t mp_type_BaseException = { .attr = mp_obj_exception_attr, }; +// *FORMAT-OFF* + // List of all exceptions, arranged as in the table at: // http://docs.python.org/3/library/exceptions.html MP_DEFINE_EXCEPTION(SystemExit, BaseException) @@ -303,6 +305,8 @@ MP_DEFINE_EXCEPTION(Exception, BaseException) MP_DEFINE_EXCEPTION(ResourceWarning, Warning) */ +// *FORMAT-ON* + mp_obj_t mp_obj_new_exception(const mp_obj_type_t *exc_type) { assert(exc_type->make_new == mp_obj_exception_make_new); return mp_obj_exception_make_new(exc_type, 0, 0, NULL); |