summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-01 12:29:06 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-01 13:00:05 -0800
commita4f658f7073ec82bcbc9a325ed5433720c4eaa48 (patch)
tree8f30341d521484a18744f3482d896c30ca696279 /sv.h
parent4345d05bb848d49bf1bc348b0bf725f5679165bf (diff)
downloadperl-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index dcd53f79d3..33a61be109 100644
--- a/sv.h
+++ b/sv.h
@@ -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)