summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorMatthew Horsfall (alh) <wolfsage@gmail.com>2011-11-16 23:06:33 -0500
committerFather Chrysostomos <sprout@cpan.org>2011-11-18 17:46:21 -0800
commite508c8a4ba3a6febe681a5f59949b1d403b124bd (patch)
treebc1e0ac587fd09743c1e645c36bd889b4e334e1c /proto.h
parent18f5643bfee3e4c35fe1b510ad2e37dcb28b9efc (diff)
downloadperl-e508c8a4ba3a6febe681a5f59949b1d403b124bd.tar.gz
Throw a helpful warning when someone tries length(@array) or length(%hash)
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 61bab08edf..bf18d5366d 100644
--- a/proto.h
+++ b/proto.h
@@ -418,6 +418,12 @@ PERL_CALLCONV OP * Perl_ck_join(pTHX_ OP *o)
#define PERL_ARGS_ASSERT_CK_JOIN \
assert(o)
+PERL_CALLCONV OP * Perl_ck_length(pTHX_ OP *o)
+ __attribute__warn_unused_result__
+ __attribute__nonnull__(pTHX_1);
+#define PERL_ARGS_ASSERT_CK_LENGTH \
+ assert(o)
+
PERL_CALLCONV OP * Perl_ck_lfun(pTHX_ OP *o)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1);