summaryrefslogtreecommitdiff
path: root/gv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-12-12 21:00:37 +0000
committerNicholas Clark <nick@ccl4.org>2006-12-12 21:00:37 +0000
commit85ffbbb0b9ce8124eef68c3c6234c26ffa9aba18 (patch)
tree1225fe18b70428d7da3e8776baeef0af8d041bd4 /gv.h
parent63f10712f341adad800caf833beeb6f5def358fe (diff)
downloadperl-85ffbbb0b9ce8124eef68c3c6234c26ffa9aba18.tar.gz
Assert that PVGVs are never SvVALID() in the PVBM sense.
p4raw-id: //depot/perl@29536
Diffstat (limited to 'gv.h')
-rw-r--r--gv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gv.h b/gv.h
index 6ef8ee6167..2463335766 100644
--- a/gv.h
+++ b/gv.h
@@ -46,6 +46,7 @@ struct gp {
(*({ GV * const zzzz = (GV *) (gv); \
assert(isGV_with_GP(zzzz)); \
assert(SvTYPE(zzzz) == SVt_PVGV || SvTYPE(zzzz) >= SVt_PVLV); \
+ assert(!SvVALID(zzzz)); \
&(GvXPVGV(zzzz)->xiv_u.xivu_namehek); \
}))
# define GvNAME_get(gv) ({ assert(GvNAME_HEK(gv)); HEK_KEY(GvNAME_HEK(gv)); })