summaryrefslogtreecommitdiff
path: root/pad.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-03-08 13:40:48 +0000
committerNicholas Clark <nick@ccl4.org>2006-03-08 13:40:48 +0000
commit1dba731d9f7b0a03b8cecb69b9d80500a283425e (patch)
tree8ef86d80db20e147b6170a449e303a7b1c1c194d /pad.h
parent69f571849d518b6e7953b40abe5d05d244a0d6f9 (diff)
downloadperl-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pad.h b/pad.h
index acfb58e47d..022a7de582 100644
--- a/pad.h
+++ b/pad.h
@@ -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));