diff options
author | Nicholas Clark <nick@ccl4.org> | 2004-06-15 09:21:22 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2004-06-15 09:21:22 +0000 |
commit | 2b0572841e170b6dd3ff1e2adc09565a9efdf3f1 (patch) | |
tree | 183b281df6538aa9e2c95b55a3f193e98faade5f /sv.h | |
parent | acf31ca582944c8bb9501bdc43ade24d8a322e8a (diff) | |
download | perl-2b0572841e170b6dd3ff1e2adc09565a9efdf3f1.tar.gz |
It seems that our assert() macro wasn't good enough.
Changed to one that that is an expression, rather than a statement.
Fix new macros definitions in sv.h to be clean enough C to keep the
AIX compiler happy.
p4raw-id: //depot/perl@22937
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -741,8 +741,8 @@ and leaves the UTF-8 status as it was. #define SvENDx(sv) ((PL_Sv = (sv)), SvEND(PL_Sv)) #ifdef DEBUGGING -#define SvMAGIC(sv) ((assert(SvTYPE(sv) >= SVt_PVMG)), ((XPVMG*) SvANY(sv))->xmg_magic) -#define SvSTASH(sv) ((assert(SvTYPE(sv) >= SVt_PVMG)), (XPVMG*) SvANY(sv))->xmg_stash +#define SvMAGIC(sv) (*(assert(SvTYPE(sv) >= SVt_PVMG), &((XPVMG*) SvANY(sv))->xmg_magic)) +#define SvSTASH(sv) (*(assert(SvTYPE(sv) >= SVt_PVMG), &((XPVMG*) SvANY(sv))->xmg_stash)) #else #define SvMAGIC(sv) ((XPVMG*) SvANY(sv))->xmg_magic #define SvSTASH(sv) ((XPVMG*) SvANY(sv))->xmg_stash |