diff options
| author | Damien George <damien@micropython.org> | 2021-07-14 22:56:52 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-07-15 00:12:41 +1000 |
| commit | 38a204ed9605a9233a66c86538562fab821ce63a (patch) | |
| tree | 70786960922fad8c89ccf1e3e914ca88cf75a030 /ports/unix/modjni.c | |
| parent | bb00125aaac8376b8cc4c8f3da2423fcf6dae496 (diff) | |
py: Introduce and use mp_raise_type_arg helper.
To reduce code size.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/unix/modjni.c')
| -rw-r--r-- | ports/unix/modjni.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/unix/modjni.c b/ports/unix/modjni.c index 74e7221de..bd151050e 100644 --- a/ports/unix/modjni.c +++ b/ports/unix/modjni.c @@ -102,9 +102,9 @@ STATIC void check_exception(void) { mp_obj_t py_e = new_jobject(exc); JJ1(ExceptionClear); if (JJ(IsInstanceOf, exc, IndexException_class)) { - nlr_raise(mp_obj_new_exception_arg1(&mp_type_IndexError, py_e)); + mp_raise_type_arg(&mp_type_IndexError, py_e); } - nlr_raise(mp_obj_new_exception_arg1(&mp_type_Exception, py_e)); + mp_raise_type_arg(&mp_type_Exception, py_e); } } |
