summaryrefslogtreecommitdiff
path: root/gv.h
diff options
context:
space:
mode:
authorReini Urban <rurban@x-ray.at>2008-06-08 16:41:51 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-06-08 15:24:44 +0000
commit603aa20df51288786331f1d6680081156c2ce5a9 (patch)
treecef00d30aa5bdf7b8e48ba988ad209210cd15dc7 /gv.h
parent91a462243ea69db634187747c3ddad662e832e86 (diff)
downloadperl-603aa20df51288786331f1d6680081156c2ce5a9.tar.gz
readable assertion names
From: "Reini Urban" <rurban@x-ray.at> Message-ID: <6910a60806080541n4f7e1939q254797411545ebea@mail.gmail.com> p4raw-id: //depot/perl@34029
Diffstat (limited to 'gv.h')
-rw-r--r--gv.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/gv.h b/gv.h
index 091a5685cf..b5fa71b4ef 100644
--- a/gv.h
+++ b/gv.h
@@ -27,27 +27,27 @@ struct gp {
#if defined (DEBUGGING) && defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN) && !defined(__INTEL_COMPILER)
# define GvGP(gv) \
- (*({GV *const shplep = (GV *) (gv); \
- assert(SvTYPE(shplep) == SVt_PVGV || SvTYPE(shplep) == SVt_PVLV); \
- assert(isGV_with_GP(shplep)); \
- &((shplep)->sv_u.svu_gp);}))
+ (*({GV *const _gvgp = (GV *) (gv); \
+ assert(SvTYPE(_gvgp) == SVt_PVGV || SvTYPE(_gvgp) == SVt_PVLV); \
+ assert(isGV_with_GP(_gvgp)); \
+ &((_gvgp)->sv_u.svu_gp);}))
# define GvFLAGS(gv) \
- (*({GV *const yaah = (GV *) (gv); \
- assert(SvTYPE(yaah) == SVt_PVGV || SvTYPE(yaah) == SVt_PVLV); \
- assert(isGV_with_GP(yaah)); \
- &(GvXPVGV(yaah)->xpv_cur);}))
+ (*({GV *const _gvflags = (GV *) (gv); \
+ assert(SvTYPE(_gvflags) == SVt_PVGV || SvTYPE(_gvflags) == SVt_PVLV); \
+ assert(isGV_with_GP(_gvflags)); \
+ &(GvXPVGV(_gvflags)->xpv_cur);}))
# define GvSTASH(gv) \
- (*({ GV * const _gv = (GV *) (gv); \
- assert(isGV_with_GP(_gv)); \
- assert(SvTYPE(_gv) == SVt_PVGV || SvTYPE(_gv) >= SVt_PVLV); \
- &(GvXPVGV(_gv)->xnv_u.xgv_stash); \
+ (*({ GV * const _gvstash = (GV *) (gv); \
+ assert(isGV_with_GP(_gvstash)); \
+ assert(SvTYPE(_gvstash) == SVt_PVGV || SvTYPE(_gvstash) >= SVt_PVLV); \
+ &(GvXPVGV(_gvstash)->xnv_u.xgv_stash); \
}))
# define GvNAME_HEK(gv) \
- (*({ 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); \
+ (*({ GV * const _gvname_hek = (GV *) (gv); \
+ assert(isGV_with_GP(_gvname_hek)); \
+ assert(SvTYPE(_gvname_hek) == SVt_PVGV || SvTYPE(_gvname_hek) >= SVt_PVLV); \
+ assert(!SvVALID(_gvname_hek)); \
+ &(GvXPVGV(_gvname_hek)->xiv_u.xivu_namehek); \
}))
# define GvNAME_get(gv) ({ assert(GvNAME_HEK(gv)); HEK_KEY(GvNAME_HEK(gv)); })
# define GvNAMELEN_get(gv) ({ assert(GvNAME_HEK(gv)); HEK_LEN(GvNAME_HEK(gv)); })