aboutsummaryrefslogtreecommitdiff
path: root/py/nlr.h
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-16 00:46:39 +0100
committerDamien <damien.p.george@gmail.com>2013-10-16 00:46:39 +0100
commit152568bcb61e65b700ca2b963534f2632d080345 (patch)
tree4abdf60b47a166c7cca0c629caf6afc137c029a8 /py/nlr.h
parentc9f91976e19e07f2cf9e4b5b348eedd3e473419a (diff)
NLR and Python exceptions work on the board.
Diffstat (limited to 'py/nlr.h')
-rw-r--r--py/nlr.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/py/nlr.h b/py/nlr.h
index b824e4a63..fa4e2f45f 100644
--- a/py/nlr.h
+++ b/py/nlr.h
@@ -3,9 +3,9 @@
#include <limits.h>
-#ifndef __WORDSIZE
-#error __WORDSIZE needs to be defined
-#endif
+//#ifndef __WORDSIZE
+//#error __WORDSIZE needs to be defined
+//#endif
typedef struct _nlr_buf_t nlr_buf_t;
struct _nlr_buf_t {
@@ -17,7 +17,9 @@ struct _nlr_buf_t {
#elif __WORDSIZE == 64
void *regs[8];
#else
-#error Unsupported __WORDSIZE
+ // hack for thumb
+ void *regs[10];
+//#error Unsupported __WORDSIZE
#endif
};