File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ const char *mp_obj_get_type_str(mp_const_obj_t o_in) {
63
63
void mp_obj_print_helper (const mp_print_t * print , mp_obj_t o_in , mp_print_kind_t kind ) {
64
64
// There can be data structures nested too deep, or just recursive
65
65
MP_STACK_CHECK ();
66
+ #ifdef RUN_BACKGROUND_TASKS
66
67
RUN_BACKGROUND_TASKS ;
68
+ #endif
67
69
#ifndef NDEBUG
68
70
if (o_in == MP_OBJ_NULL ) {
69
71
mp_print_str (print , "(nil)" );
Original file line number Diff line number Diff line change @@ -341,7 +341,9 @@ STATIC mp_obj_t stream_readall(mp_obj_t self_in) {
341
341
p = vstr_extend (& vstr , DEFAULT_BUFFER_SIZE );
342
342
current_read = DEFAULT_BUFFER_SIZE ;
343
343
}
344
+ #ifdef RUN_BACKGROUND_TASKS
344
345
RUN_BACKGROUND_TASKS ;
346
+ #endif
345
347
}
346
348
347
349
vstr .len = total_size ;
You can’t perform that action at this time.
0 commit comments