From: Vincent Pit Date: Tue, 29 Dec 2009 16:35:38 +0000 (+0100) Subject: Fix for {ENTER,LEAVE}_with_name X-Git-Tag: v0.10~16 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=25ca578b6394c6506d811fe8f0dd976ba4c71b7f;p=perl%2Fmodules%2FScope-Upper.git Fix for {ENTER,LEAVE}_with_name --- diff --git a/Upper.xs b/Upper.xs index fa117d9..9c28d17 100644 --- a/Upper.xs +++ b/Upper.xs @@ -48,6 +48,14 @@ # define HvNAME_get(H) HvNAME(H) #endif +#ifndef ENTER_with_name +# define ENTER_with_name(N) ENTER +#endif + +#ifndef LEAVE_with_name +# define LEAVE_with_name(N) LEAVE +#endif + #ifndef gv_fetchpvn_flags # define gv_fetchpvn_flags(A, B, C, D) gv_fetchpv((A), (C), (D)) #endif @@ -491,7 +499,7 @@ STATIC I32 su_init(pTHX_ I32 cxix, void *ud, I32 size) { #define su_init(L, U, S) su_init(aTHX_ (L), (U), (S)) I32 i, depth = 0, *origin; - LEAVE; + LEAVE_with_name("sub"); if (cxix >= cxstack_ix) { SU_UD_HANDLER(ud)(aTHX_ ud); @@ -551,7 +559,7 @@ STATIC I32 su_init(pTHX_ I32 cxix, void *ud, I32 size) { SAVEDESTRUCTOR_X(su_pop, ud); done: - ENTER; + ENTER_with_name("sub"); return depth; }