8000 py/nlr: Remove commented-out debugging code. · micropython/micropython@f36ae5e · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f36ae5e

Browse files
committed
py/nlr: Remove commented-out debugging code.
Also remove the unnecessary include of mpstate.h. Signed-off-by: Damien George <damien@micropython.org>
1 parent 24aa81e commit f36ae5e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

py/nlr.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,9 @@ NORETURN void nlr_jump_fail(void *val);
171171
#ifndef MICROPY_DEBUG_NLR
172172
#define nlr_raise(val) nlr_jump(MP_OBJ_TO_PTR(val))
173173
#else
174-
#include "mpstate.h"
174+
175175
#define nlr_raise(val) \
176176
do { \
177-
/*printf("nlr_raise: nlr_top=%p\n", MP_STATE_THREAD(nlr_top)); \
178-
fflush(stdout);*/ \
179177
void *_val = MP_OBJ_TO_PTR(val); \
180178
assert(_val != NULL); \
181179
assert(mp_obj_is_exception_instance(val)); \
@@ -185,11 +183,6 @@ NORETURN void nlr_jump_fail(void *val);
185183
#if !MICROPY_NLR_SETJMP
186184
#define nlr_push(val) \
187185
assert(MP_STATE_THREAD(nlr_top) != val), nlr_push(val)
188-
189-
/*
190-
#define nlr_push(val) \
191-
printf("nlr_push: before: nlr_top=%p, val=%p\n", MP_STATE_THREAD(nlr_top), val),assert(MP_STATE_THREAD(nlr_top) != val),nlr_push(val)
192-
*/
193186
#endif
194187

195188
#endif

0 commit comments

Comments
 (0)
0