File tree 3 files changed +19
-4
lines changed
3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -966,7 +966,7 @@ do-commands: native [
966
966
]
967
967
968
968
ds: native ["Temporary stack debug" ]
969
- dump: native ["Temporary debug dump" v]
969
+ dump: native ["Temporary debug dump" v /fmt "only series format" ]
970
970
check: native ["Temporary series debug check" val [series! ]]
971
971
972
972
do-callback: native [
Original file line number Diff line number Diff line change 33
33
34
34
/***********************************************************************
35
35
**
36
- */ void Dump_Series (REBSER * series , const char * memo )
36
+ */ void Dump_Series_Fmt (REBSER * series , const char * memo )
37
37
/*
38
38
***********************************************************************/
39
39
{
50
50
SERIES_REST (series ),
51
51
SERIES_FLAGS (series )
52
52
);
53
+ }
54
+
55
+ /***********************************************************************
56
+ **
57
+ */ void Dump_Series (REBSER * series , const char * memo )
58
+ /*
59
+ ***********************************************************************/
60
+ {
61
+ if (!series ) return ;
62
+ Dump_Series_Fmt (series , memo );
53
63
if (SERIES_WIDE (series ) == sizeof (REBVAL )) {
54
64
Dump_Values (BLK_HEAD (series ), SERIES_TAIL (series ));
55
65
} else
Original file line number Diff line number Diff line change @@ -938,8 +938,13 @@ static int Do_Ordinal(REBVAL *ds, REBINT n)
938
938
#ifdef _DEBUG
939
939
REBVAL * arg = D_ARG (1 );
940
940
941
- if (ANY_SERIES (arg ))
942
- Dump_Series (VAL_SERIES (arg ), "=>" );
941
+ if (ANY_SERIES (arg )) {
942
+ if (D_REF (2 )) {
943
+ Dump_Series_Fmt (VAL_SERIES (arg ), "=>" );
944
+ } else {
945
+ Dump_Series (VAL_SERIES (arg ), "=>" );
946
+ }
947
+ }
943
948
else
944
949
Dump_Values (arg , 1 );
945
950
#endif
You can’t perform that action at this time.
0 commit comments