summaryrefslogtreecommitdiff
path: root/hv.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-10-29 22:26:34 -0700
committerFather Chrysostomos <sprout@cpan.org>2010-10-29 22:49:20 -0700
commit41d7c195c68c882ae8e1bd0a34c55987b0a16375 (patch)
tree7d8f43a59a3693f01653ed73c355c2c4b4a1f8b8 /hv.h
parent992066774e37b5af046363f52fb0d676769038e6 (diff)
downloadperl-41d7c195c68c882ae8e1bd0a34c55987b0a16375.tar.gz
Add HvENAME_HEK
Diffstat (limited to 'hv.h')
-rw-r--r--hv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hv.h b/hv.h
index 81786a61ab..84eac3d532 100644
--- a/hv.h
+++ b/hv.h
@@ -295,6 +295,8 @@ C<SV*>.
HvAUX(hv)->xhv_name_count == -1 ? NULL : \
HvAUX(hv)->xhv_name \
)
+# define HvENAME_HEK(hv) \
+ (SvOOK(hv) && HvAUX(hv)->xhv_name ? HvENAME_HEK_NN(hv) : NULL)
# define HvENAME_get(hv) \
((SvOOK(hv) && (HvAUX(hv)->xhv_name) && HvENAME_HEK_NN(hv)) \
? HEK_KEY(HvENAME_HEK_NN(hv)) : NULL)