projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34fce10
)
Protect sv_dump() from being included unless DEBUGGING,
author
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 19 Nov 2001 17:37:26 +0000
(17:37 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 19 Nov 2001 17:37:26 +0000
(17:37 +0000)
as noticed by Ilya.
p4raw-id: //depot/perl@13098
sv.c
patch
|
blob
|
history
diff --git
a/sv.c
b/sv.c
index
8453d28
..
7a0b5b3
100644
(file)
--- a/
sv.c
+++ b/
sv.c
@@
-300,10
+300,12
@@
S_visit(pTHX_ SVFUNC_t f)
static void
do_report_used(pTHX_ SV *sv)
{
+#ifdef DEBUGGING
if (SvTYPE(sv) != SVTYPEMASK) {
PerlIO_printf(Perl_debug_log, "****\n");
sv_dump(sv);
}
+#endif
}
/*
@@
-317,7
+319,9
@@
Dump the contents of all SVs not yet freed. (Debugging aid).
void
Perl_sv_report_used(pTHX)
{
+#ifdef DEBUGGING
visit(do_report_used);
+#endif
}
/* called by sv_clean_objs() for each live SV */