diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-11-03 16:54:05 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-11-03 16:54:05 +0000 |
commit | 8897dcaad14089c32e969309beb16112ec768eaf (patch) | |
tree | 7610d6a83c89377e877de24b35643cecaa1035c9 /sv.c | |
parent | 25a9ffce153b0e67cfefd260754edeb097da5be7 (diff) | |
download | perl-8897dcaad14089c32e969309beb16112ec768eaf.tar.gz |
Inline tryAMAGICunDEREF_var() into its callers and eliminate it.
Nothing outside the core was using this macro.
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8729,9 +8729,10 @@ Perl_sv_2cv(pTHX_ SV *sv, HV **const st, GV **const gvp, const I32 lref) default: if (SvROK(sv)) { - SV * const *sp = &sv; /* Used in tryAMAGICunDEREF macro. */ SvGETMAGIC(sv); - tryAMAGICunDEREF(to_cv); + sv = amagic_deref_call(sv, to_cv_amg); + /* At this point I'd like to do SPAGAIN, but really I need to + force it upon my callers. Hmmm. This is a mess... */ sv = SvRV(sv); if (SvTYPE(sv) == SVt_PVCV) { |