We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 103450b commit 407c99cCopy full SHA for 407c99c
pp.h
@@ -580,7 +580,7 @@ Does not use C<TARG>. See also C<L</XPUSHu>>, C<L</mPUSHu>> and C<L</PUSHu>>.
580
#define mXPUSHi(i) STMT_START { EXTEND(sp,1); mPUSHi(i); } STMT_END
581
#define mXPUSHu(u) STMT_START { EXTEND(sp,1); mPUSHu(u); } STMT_END
582
583
-#define SETs(s) (*sp = s)
+#define SETs(s) (STATIC_ASSERT_EXPR(sizeof(*sp) == sizeof(s)), *sp = s)
584
#define SETTARG STMT_START { SvSETMAGIC(TARG); SETs(TARG); } STMT_END
585
#define SETp(p,l) STMT_START { sv_setpvn(TARG, (p), (l)); SETTARG; } STMT_END
586
#define SETn(n) STMT_START { TARGn(n,1); SETs(TARG); } STMT_END
0 commit comments