summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-01-21 16:41:58 +0000
committerNicholas Clark <nick@ccl4.org>2009-01-21 17:09:11 +0000
commitb96d8cd966afa49291119752aac86cd1f1de5560 (patch)
treeddea44f6a0b8c59ab9835695c9936f2375fb6afd /handy.h
parente350d0e0ab968c54f8b39c21d92b151f1f1611d5 (diff)
downloadperl-b96d8cd966afa49291119752aac86cd1f1de5560.tar.gz
Add get_cvs() as a shortcut for STR_WITH_LEN() and Perl_get_cvn_flags(), and
use it where possible.
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index e82a644071..75080cb641 100644
--- a/handy.h
+++ b/handy.h
@@ -327,6 +327,8 @@ and omits the hash parameter.
((SV **)Perl_hv_common(aTHX_ (hv), NULL, STR_WITH_LEN(key), 0, \
(HV_FETCH_ISSTORE|HV_FETCH_JUST_SV), (val), 0))
+#define get_cvs(str, flags) \
+ Perl_get_cvn_flags(aTHX_ STR_WITH_LEN(str), (flags))
/*
=head1 Miscellaneous Functions