From 6be58040b229d0899faf04b1ce99ce9a5e2b1344 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 7 Mar 2016 14:44:50 -0700 Subject: [PATCH] Add av_tindex_nomg() This is like av_tindex, but doesn't handle magic. I'm not documenting it for now, in case it turns out this was not a good idea. Inspired from an observation by Tony Cook. --- av.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/av.h b/av.h index 30b8e52..9b9b373 100644 --- a/av.h +++ b/av.h @@ -81,6 +81,8 @@ Same as C. ? mg_size(MUTABLE_SV(av)) : AvFILLp(av)) #define av_tindex(av) av_top_index(av) +#define av_tindex_nomg(av) (__ASSERT_(SvTYPE(av) == SVt_PVAV) AvFILLp(av)) + #define NEGATIVE_INDICES_VAR "NEGATIVE_INDICES" /* -- 1.8.3.1