Skip to content

Commit 803264b

Browse files
stinosdpgeorge
authored andcommitted
py: Guard against redef of nlr_push with DEBUG + MICROPY_NLR_SETJMP.
1 parent 9be0d59 commit 803264b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

py/nlr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ void nlr_jump_fail(void *val);
9999
nlr_jump(_val); \
100100
} while (0)
101101

102+
#if !MICROPY_NLR_SETJMP
102103
#define nlr_push(val) \
103104
assert(MP_STATE_VM(nlr_top) != val),nlr_push(val)
104105

@@ -107,6 +108,7 @@ void nlr_jump_fail(void *val);
107108
printf("nlr_push: before: nlr_top=%p, val=%p\n", MP_STATE_VM(nlr_top), val),assert(MP_STATE_VM(nlr_top) != val),nlr_push(val)
108109
#endif
109110
*/
111+
#endif
110112

111113
#endif
112114

0 commit comments

Comments
 (0)