summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2019-01-31 15:39:39 +1100
committerTony Cook <tony@develop-help.com>2019-08-08 15:46:59 +1000
commitdaf9aebe705685e1b0afbe8377bd4653693c895d (patch)
tree2a0d2855654bb77652eb58e3d5443de9b59ba6d2
parenta902610b4b293074eeab256998987b8e1215585e (diff)
downloadperl-daf9aebe705685e1b0afbe8377bd4653693c895d.tar.gz
(perl #132777) APIify and document PL_perl_destruct_level
This is documented in perlembed. It's only rarely used on CPAN but it's pretty basic.
-rw-r--r--intrpvar.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/intrpvar.h b/intrpvar.h
index 0c96969097..93357eeadc 100644
--- a/intrpvar.h
+++ b/intrpvar.h
@@ -690,8 +690,28 @@ PERLVARI(I, phase, enum perl_phase, PERL_PHASE_CONSTRUCT)
PERLVARI(I, in_load_module, bool, FALSE) /* to prevent recursions in PerlIO_find_layer */
-/* This value may be set when embedding for full cleanup */
-/* 0=none, 1=full, 2=full with checks */
+/*
+=for apidoc Amn|signed char|PL_perl_destruct_level
+
+This value may be set when embedding for full cleanup.
+
+Possible values:
+
+=over
+
+=item * 0 - none
+
+=item * 1 - full
+
+=item * 2 or greater - full with checks.
+
+=back
+
+If C<$ENV{PERL_DESTRUCT_LEVEL}> is set to an integer greater than the
+value of C<PL_perl_destruct_level> its value is used instead.
+
+=cut
+*/
/* mod_perl is special, and also assigns a meaning -1 */
PERLVARI(I, perl_destruct_level, signed char, 0)