diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-03-08 13:40:48 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-03-08 13:40:48 +0000 |
commit | 1dba731d9f7b0a03b8cecb69b9d80500a283425e (patch) | |
tree | 8ef86d80db20e147b6170a449e303a7b1c1c194d /pad.h | |
parent | 69f571849d518b6e7953b40abe5d05d244a0d6f9 (diff) | |
download | perl-1dba731d9f7b0a03b8cecb69b9d80500a283425e.tar.gz |
Add MAD changes to pad code (new function Perl_pad_peg)
p4raw-id: //depot/perl@27419
Diffstat (limited to 'pad.h')
-rw-r--r-- | pad.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -50,14 +50,20 @@ typedef enum { * whether PL_comppad and PL_curpad are consistent and whether they have * active values */ +#ifndef PERL_MAD +# define pad_peg(label) +#endif + #ifdef DEBUGGING # define ASSERT_CURPAD_LEGAL(label) \ + pad_peg(label); \ if (PL_comppad ? (AvARRAY(PL_comppad) != PL_curpad) : (PL_curpad != 0)) \ Perl_croak(aTHX_ "panic: illegal pad in %s: 0x%"UVxf"[0x%"UVxf"]",\ label, PTR2UV(PL_comppad), PTR2UV(PL_curpad)); # define ASSERT_CURPAD_ACTIVE(label) \ + pad_peg(label); \ if (!PL_comppad || (AvARRAY(PL_comppad) != PL_curpad)) \ Perl_croak(aTHX_ "panic: invalid pad in %s: 0x%"UVxf"[0x%"UVxf"]",\ label, PTR2UV(PL_comppad), PTR2UV(PL_curpad)); |