summaryrefslogtreecommitdiffstatshomepage
path: root/py/nlr.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/nlr.h')
-rw-r--r--py/nlr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/nlr.h b/py/nlr.h
index 43a0c4f6a9..cb2b53b854 100644
--- a/py/nlr.h
+++ b/py/nlr.h
@@ -29,6 +29,7 @@
#include <limits.h>
#include <setjmp.h>
+#include <assert.h>
typedef struct _nlr_buf_t nlr_buf_t;
struct _nlr_buf_t {
@@ -44,7 +45,7 @@ struct _nlr_buf_t {
#else
void *regs[8];
#endif
-#elif defined(__thumb2__)
+#elif defined(__thumb2__) || defined(__thumb__) || defined(__arm__)
void *regs[10];
#else
#define MICROPY_NLR_SETJMP (1)