static I32 vmg_call_sv(pTHX_ SV *sv, I32 flags, int (*cleanup)(pTHX_ void *), void *ud) {
#define vmg_call_sv(S, F, C, U) vmg_call_sv(aTHX_ (S), (F), (C), (U))
- I32 ret, cxix;
- PERL_CONTEXT saved_cx;
+ I32 ret;
SV *old_err = NULL;
if (SvTRUE(ERRSV)) {
sv_setsv(ERRSV, &PL_sv_undef);
}
- cxix = (cxstack_ix < cxstack_max) ? (cxstack_ix + 1) : Perl_cxinc(aTHX);
- /* The last popped context will be reused by call_sv(), but our callers may
- * still need its previous value. Back it up so that it isn't clobbered. */
- saved_cx = cxstack[cxix];
-
ret = call_sv(sv, flags | G_EVAL);
- cxstack[cxix] = saved_cx;
-
if (SvTRUE(ERRSV)) {
SvREFCNT_dec(old_err);