py: Guard against redef of nlr_push with DEBUG + MICROPY_NLR_SETJMP.

stackless
stijn 2015-03-03 11:15:06 +01:00 committed by Damien George
parent 9be0d599cd
commit 803264bb17
1 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ void nlr_jump_fail(void *val);
nlr_jump(_val); \
} while (0)
#if !MICROPY_NLR_SETJMP
#define nlr_push(val) \
assert(MP_STATE_VM(nlr_top) != val),nlr_push(val)
@ -107,6 +108,7 @@ void nlr_jump_fail(void *val);
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)
#endif
*/
#endif
#endif