File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -204,17 +204,18 @@ static REBVAL *Func_Word(REBINT dsf)
204
204
return R_UNSET ;
205
205
}
206
206
207
- static REBINT Init_Depth (void )
207
+ static REBINT Init_Depth (REBINT plus )
208
208
{
209
209
// Check the trace depth is ok:
210
- int depth = Eval_Depth () - Trace_Depth ;
210
+ int depth = Eval_Depth () - Trace_Depth + plus ;
211
211
if (depth < 0 || depth >= Trace_Level ) return -1 ;
212
212
if (depth > 10 ) depth = 10 ;
213
- Debug_Space (4 * depth );
213
+ Debug_Space (3 * depth );
214
214
return depth ;
215
215
}
216
216
217
- #define CHECK_DEPTH (d ) if ((d = Init_Depth()) < 0) return;\
217
+ #define CHECK_DEPTH (d ) if ((d = Init_Depth(0)) < 0) return;
218
+ #define CHECK_DEPTH_RET (d ) if ((d = Init_Depth(1)) < 0) return;
218
219
219
220
void Trace_Line (REBSER * block , REBINT index , REBVAL * value )
220
221
{
@@ -258,7 +259,7 @@ void Trace_Func(REBVAL *word, REBVAL *value)
258
259
void Trace_Return (REBVAL * word , REBVAL * value )
259
260
{
260
261
int depth ;
261
- CHECK_DEPTH (depth );
262
+ CHECK_DEPTH_RET (depth );
262
263
Debug_Fmt_ (BOOT_STR (RS_TRACE ,6 ), Get_Word_Name (word ));
263
264
Debug_Values (value , 1 , 50 );
264
265
}
You can’t perform that action at this time.
0 commit comments