summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorMike Guy <mjtg@cam.ac.uk>2000-08-08 16:51:27 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-08 18:06:29 +0000
commit1426bbf4b7d39af0f80ec0afcb4869d2bc3f0a90 (patch)
tree594be049f6d75b6949b880b017535670ff194ed3 /sv.h
parenta223bd6128bafe323fc3be7c344f6b66aa25af02 (diff)
downloadperl-1426bbf4b7d39af0f80ec0afcb4869d2bc3f0a90.tar.gz
Re: [ID 20000807.008] Double reads considered evil? (deja vu)
Message-Id: <E13MAj1-00038W-00@libra.cus.cam.ac.uk> p4raw-id: //depot/perl@6552
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index d242bf5569..5500d2b46b 100644
--- a/sv.h
+++ b/sv.h
@@ -612,6 +612,8 @@ Set the length of the string which is in the SV. See C<SvCUR>.
#define SvAMAGIC_on(sv) (SvFLAGS(sv) |= SVf_AMAGIC)
#define SvAMAGIC_off(sv) (SvFLAGS(sv) &= ~SVf_AMAGIC)
+#define SvGAMAGIC(sv) (SvFLAGS(sv) & (SVs_GMG|SVf_AMAGIC))
+
/*
#define Gv_AMG(stash) \
(HV_AMAGICmb(stash) && \