3 * Copyright (C) 1999, 2000, 2001, 2004, 2006, 2008 by Larry Wall and others
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
10 #define DOOP(ppname) PUTBACK; PL_op = ppname(aTHX); SPAGAIN
11 #define CCPP(s) OP * s(pTHX)
13 #define PP_LIST(g) do { \
19 *MARK = &PL_sv_undef; \
24 #define MAYBE_TAINT_SASSIGN_SRC(sv) \
25 if (PL_tainting && PL_tainted && (!SvGMAGICAL(left) || !SvSMAGICAL(left) || \
26 !((mg=mg_find(left, PERL_MAGIC_taint)) && mg->mg_len & 1)))\
29 #define PP_PREINC(sv) do { \
32 SvFLAGS(sv) &= ~(SVf_NOK|SVf_POK|SVp_NOK|SVp_POK); \
39 #define PP_UNSTACK do { \
41 PL_stack_sp = PL_stack_base + cxstack[cxstack_ix].blk_oldsp; \
43 oldsave = PL_scopestack[PL_scopestack_ix - 1]; \
44 LEAVE_SCOPE(oldsave); \
48 /* Anyone using eval "" deserves this mess */
49 #define PP_EVAL(ppaddr, nxt) do { \
56 PL_op = ppaddr(aTHX); \
57 if (PL_op != nxt) CALLRUNOPS(aTHX); \
60 case 1: JMPENV_POP; JMPENV_JUMP(1); \
61 case 2: JMPENV_POP; JMPENV_JUMP(2); \
64 if (PL_restartop && PL_restartop != nxt) \
72 #define PP_ENTERTRY(jmpbuf,label) \
75 JMPENV_PUSH_ENV(jmpbuf,ret); \
77 case 1: JMPENV_POP_ENV(jmpbuf); JMPENV_JUMP(1);\
78 case 2: JMPENV_POP_ENV(jmpbuf); JMPENV_JUMP(2);\
79 case 3: JMPENV_POP_ENV(jmpbuf); SPAGAIN; goto label;\
83 STMT_START{ PL_top_env=PL_top_env->je_prev; }STMT_END