diff options
| author | Terri Oda <terri@toybox.ca> | 2019-05-08 11:54:08 -0700 |
|---|---|---|
| committer | Terri Oda <terri@toybox.ca> | 2019-05-08 11:54:08 -0700 |
| commit | a9b05d37d70ac38fea2cdceffc28ce354f204200 (patch) | |
| tree | 8ccfc7a40db00f60181901e47113244888d47453 /py/runtime.c | |
| parent | 1a8e50c773946a683541b9954e38f69b4b346dc2 (diff) | |
Make status light flash blue for incompatible mpy (fixes #1369)
Diffstat (limited to 'py/runtime.c')
| -rw-r--r-- | py/runtime.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c index 1e0100337..1a75a3870 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -1598,6 +1598,10 @@ NORETURN void mp_raise_NotImplementedError_varg(const compressed_string_t *fmt, nlr_raise(exception); } +NORETURN void mp_raise_MpyError(const compressed_string_t *msg) { + mp_raise_msg(&mp_type_MpyError, msg); +} + #if MICROPY_STACK_CHECK || MICROPY_ENABLE_PYSTACK NORETURN void mp_raise_recursion_depth(void) { mp_raise_RuntimeError(translate("maximum recursion depth exceeded")); |
