mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
NLR and Python exceptions work on the board.
This commit is contained in:
10
py/nlr.h
10
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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user