summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorShawn M Moore <sartak@bestpractical.com>2011-07-06 22:34:49 -0400
committerFather Chrysostomos <sprout@cpan.org>2011-07-11 20:29:55 -0700
commitca7b837b497c7593dd1e10c394a96b3b71835897 (patch)
tree1ef36e67f5515faae286f43cf55ed465f150d500 /perl.h
parentc73b0699db4d0b8bf57e4823fbb2f8ec64fa375e (diff)
downloadperl-ca7b837b497c7593dd1e10c394a96b3b71835897.tar.gz
Factor out a PERL_SET_PHASE macro
This is the first step in adding a dtrace probe for global phase change
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 6e1038b5dc..423d264785 100644
--- a/perl.h
+++ b/perl.h
@@ -4718,6 +4718,11 @@ EXTCONST char PL_bincompat_options[] =
EXTCONST char PL_bincompat_options[];
#endif
+#ifndef PERL_SET_PHASE
+# define PERL_SET_PHASE(new_phase) \
+ PL_phase = new_phase;
+#endif
+
/* The interpreter phases. If these ever change, PL_phase_names right below will
* need to be updated accordingly. */
enum perl_phase {