Skip to content

Commit 9500e8e

Browse files
Robin Barkerrgs
Robin Barker
authored andcommitted
avoid use of operator name in macro
1 parent 970161d commit 9500e8e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,14 +2485,14 @@ PP(pp_negate)
24852485

24862486
PP(pp_not)
24872487
{
2488-
dVAR; dSP; tryAMAGICunSET(not);
2488+
dVAR; dSP; tryAMAGICunSET_var(not_amg);
24892489
*PL_stack_sp = boolSV(!SvTRUE(*PL_stack_sp));
24902490
return NORMAL;
24912491
}
24922492

24932493
PP(pp_complement)
24942494
{
2495-
dVAR; dSP; dTARGET; tryAMAGICun(compl);
2495+
dVAR; dSP; dTARGET; tryAMAGICun_var(compl_amg);
24962496
{
24972497
dTOPss;
24982498
SvGETMAGIC(sv);

pp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ Does not use C<TARG>. See also C<XPUSHu>, C<mPUSHu> and C<PUSHu>.
450450

451451
#define tryAMAGICun_var(meth_enum) tryAMAGICunW_var(meth_enum,SETsvUN,0,RETURN)
452452
#define tryAMAGICun(meth) tryAMAGICun_var(CAT2(meth,_amg))
453+
#define tryAMAGICunSET_var(meth_enum) tryAMAGICunW_var(meth_enum,SETs,0,RETURN)
453454
#define tryAMAGICunSET(meth) tryAMAGICunW(meth,SETs,0,RETURN)
454455
#define tryAMAGICunTARGET(meth, shift) \
455456
STMT_START { dSP; sp--; /* get TARGET from below PL_stack_sp */ \

0 commit comments

Comments
 (0)