summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
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 fdb1fd0a65..5474074ed9 100644
--- a/sv.h
+++ b/sv.h
@@ -1011,6 +1011,8 @@ in gv.h: */
# define SvMAGIC(sv) \
(*({ SV *const _svi = (SV *) sv; \
assert(SvTYPE(_svi) >= SVt_PVMG); \
+ if (SvTYPE(_svi) == SVt_PVMG && (SvFLAGS(_svi) & SVpad_NAME)) \
+ assert (!((XPVMG*) SvANY(_svi))->xmg_magic); \
&(((XPVMG*) SvANY(_svi))->xmg_magic); \
}))
# define SvSTASH(sv) \