diff options
author | Damien George <damien.p.george@gmail.com> | 2017-12-28 16:18:39 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-12-28 16:18:39 +1100 |
commit | 5bf8e85fc828974199d469db711aa2f9649c467b (patch) | |
tree | 114c8566cf47e5083f2a042eae1b4165bda30005 /py/nlrxtensa.c | |
parent | 97cc48553828ed091325d0d3922eb4cd6c377221 (diff) |
py/nlr: Clean up selection and config of NLR implementation.
If MICROPY_NLR_SETJMP is not enabled and the machine is auto-detected then
nlr.h now defines some convenience macros for the individual NLR
implementations to use (eg MICROPY_NLR_THUMB). This keeps nlr.h and the
implementation in sync, and also makes the nlr_buf_t struct easier to read.
Diffstat (limited to 'py/nlrxtensa.c')
-rw-r--r-- | py/nlrxtensa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/nlrxtensa.c b/py/nlrxtensa.c index 5a969fc87..73f14385d 100644 --- a/py/nlrxtensa.c +++ b/py/nlrxtensa.c @@ -26,7 +26,7 @@ #include "py/mpstate.h" -#if !MICROPY_NLR_SETJMP && defined(__xtensa__) +#if MICROPY_NLR_XTENSA #undef nlr_push @@ -101,4 +101,4 @@ NORETURN void nlr_jump(void *val) { for (;;); // needed to silence compiler warning } -#endif // !MICROPY_NLR_SETJMP && defined(__xtensa__) +#endif // MICROPY_NLR_XTENSA |