summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorChris Nandor <pudge@pobox.com>2002-02-08 11:31:41 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-08 20:46:38 +0000
commit248c2a4db2b44950ecd8cee3a0e62f31984454b4 (patch)
treecb9c782043ed59ba97898c31b2f4d975695555a8 /cop.h
parent6b20d41b70d65d1c7134ef7be518afdd9f0152d7 (diff)
downloadperl-248c2a4db2b44950ecd8cee3a0e62f31984454b4.tar.gz
CopFILE / MacPerl_MPWFileName
Message-ID: <pudge-10FC3D.16314108022002@onion.valueclick.com> p4raw-id: //depot/perl@14608
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cop.h b/cop.h
index 3e1820fc20..d617bfc32a 100644
--- a/cop.h
+++ b/cop.h
@@ -70,6 +70,13 @@ struct cop {
#define CopLINE_dec(c) (--CopLINE(c))
#define CopLINE_set(c,l) (CopLINE(c) = (l))
+/* OutCopFILE() is CopFILE for output (caller, die, warn, etc.) */
+#ifdef MACOS_TRADITIONAL
+# define OutCopFILE(c) MacPerl_MPWFileName(CopFILE(c))
+#else
+# define OutCopFILE(c) CopFILE(c)
+#endif
+
/*
* Here we have some enormously heavy (or at least ponderous) wizardry.
*/