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 354ba92 commit a6773dbCopy full SHA for a6773db
sv.h
@@ -2459,7 +2459,11 @@ that already have a PV buffer allocated, but no SvTHINKFIRST.
2459
#define SvUNLOCK(sv) PL_unlockhook(aTHX_ sv)
2460
#define SvDESTROYABLE(sv) PL_destroyhook(aTHX_ sv)
2461
2462
-#define SvSETMAGIC(x) STMT_START { if (UNLIKELY(SvSMAGICAL(x))) mg_set(x); } STMT_END
+#define SvSETMAGIC(x) \
2463
+ STMT_START { \
2464
+ SV * sv_svsetmagic_ = MUTABLE_SV(x); \
2465
+ if (UNLIKELY(SvSMAGICAL(sv_svsetmagic_))) mg_set(sv_svsetmagic_); \
2466
+ } STMT_END
2467
2468
#define SvSetSV_and(dst,src,finally) \
2469
STMT_START { \
0 commit comments