summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2006-01-03 15:57:18 +0000
committerSteve Hay <SteveHay@planit.com>2006-01-03 15:57:18 +0000
commit8688788eaf75c1c6bc22e0fc68eafa35e6ef1f2b (patch)
tree3b6a4742dfaddcfef7df84237262ddfc7105472a /cop.h
parent4df3f177ec6976dd82207a4ed033ec8c90400146 (diff)
downloadperl-8688788eaf75c1c6bc22e0fc68eafa35e6ef1f2b.tar.gz
Fix release mode builds following change 26598
p4raw-id: //depot/perl@26608
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/cop.h b/cop.h
index ed5718455a..8ba4fe9b93 100644
--- a/cop.h
+++ b/cop.h
@@ -167,8 +167,12 @@ struct cop {
? GvSV(gv_fetchfile(CopFILE(c))) : Nullsv)
# define CopFILEAV(c) (CopFILE(c) \
? GvAV(gv_fetchfile(CopFILE(c))) : NULL)
-# define CopFILEAVx(c) (assert(CopFILE(c)), \
+# ifdef DEBUGGING
+# define CopFILEAVx(c) (assert(CopFILE(c)), \
GvAV(gv_fetchfile(CopFILE(c))))
+# else
+# define CopFILEAVx(c) (GvAV(gv_fetchfile(CopFILE(c))))
+# endif
# define CopSTASHPV(c) ((c)->cop_stashpv)
# ifdef NETWARE
@@ -194,7 +198,11 @@ struct cop {
# define CopFILE_set(c,pv) CopFILEGV_set((c), gv_fetchfile(pv))
# define CopFILESV(c) (CopFILEGV(c) ? GvSV(CopFILEGV(c)) : Nullsv)
# define CopFILEAV(c) (CopFILEGV(c) ? GvAV(CopFILEGV(c)) : NULL)
-# define CopFILEAVx(c) (assert(CopFILEGV(c)), GvAV(CopFILEGV(c)))
+# ifdef DEBUGGING
+# define CopFILEAVx(c) (assert(CopFILEGV(c)), GvAV(CopFILEGV(c)))
+# else
+# define CopFILEAVx(c) (GvAV(CopFILEGV(c)))
+# endif
# define CopFILE(c) (CopFILESV(c) ? SvPVX(CopFILESV(c)) : Nullch)
# define CopSTASH(c) ((c)->cop_stash)
# define CopSTASH_set(c,hv) ((c)->cop_stash = (hv))