summaryrefslogtreecommitdiff
path: root/gv.h
diff options
context:
space:
mode:
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)); })