diff options
author | Shawn M Moore <sartak@bestpractical.com> | 2011-07-06 22:34:49 -0400 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-07-11 20:29:55 -0700 |
commit | ca7b837b497c7593dd1e10c394a96b3b71835897 (patch) | |
tree | 1ef36e67f5515faae286f43cf55ed465f150d500 /perl.h | |
parent | c73b0699db4d0b8bf57e4823fbb2f8ec64fa375e (diff) | |
download | perl-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 { |