diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-12-01 12:29:06 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-12-01 13:00:05 -0800 |
commit | a4f658f7073ec82bcbc9a325ed5433720c4eaa48 (patch) | |
tree | 8f30341d521484a18744f3482d896c30ca696279 /sv.h | |
parent | 4345d05bb848d49bf1bc348b0bf725f5679165bf (diff) | |
download | perl-a4f658f7073ec82bcbc9a325ed5433720c4eaa48.tar.gz |
Bring SvOOK_on back, but simpler
Commit 404dce59 removed it, because nothing in core or CPAN was using
it and it is not part of the API.
Nothing in core was using it because it was unusable as previously
defined (with SvIOK_off).
This commit brings it back, but now it is a simple flag-setting macro,
that will actually be usable by the core.
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -848,6 +848,7 @@ in gv.h: */ ? mg_find(sv,PERL_MAGIC_vstring) : NULL) #define SvOOK(sv) (SvFLAGS(sv) & SVf_OOK) +#define SvOOK_on(sv) (SvFLAGS(sv) |= SVf_OOK) #define SvOOK_off(sv) ((void)(SvOOK(sv) && sv_backoff(sv))) #define SvFAKE(sv) (SvFLAGS(sv) & SVf_FAKE) |