summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-01-22 17:32:21 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-01-22 17:32:21 +0000
commita446a88f1d0ae9b5bdb72150525c08f417f05975 (patch)
tree5c8813f2f480bcbc08c9f37b13b790ca287f1f5f /perl.h
parent7719e2416ec63cec924046d8e4d98affa4e7d3b0 (diff)
downloadperl-a446a88f1d0ae9b5bdb72150525c08f417f05975.tar.gz
Shared scalars working, some shared array ops working.
p4raw-id: //depot/perlio@14377
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index e2b3419fcd..85aae2c82e 100644
--- a/perl.h
+++ b/perl.h
@@ -2540,6 +2540,14 @@ Gid_t getegid (void);
#define YYMAXDEPTH 300
#ifndef assert /* <assert.h> might have been included somehow */
+#ifdef DEBUGGING
+#define assert(what) DEB( { \
+ if (!(what)) { \
+ Perl_croak(aTHX_ "Assertion " STRINGIFY(what) " failed: file \"%s\", line %d", \
+ __FILE__, __LINE__); \
+ PerlProc_exit(1); \
+ }})
+#else
#define assert(what) DEB( { \
if (!(what)) { \
Perl_croak(aTHX_ "Assertion failed: file \"%s\", line %d", \
@@ -2547,6 +2555,7 @@ Gid_t getegid (void);
PerlProc_exit(1); \
}})
#endif
+#endif
struct ufuncs {
I32 (*uf_val)(pTHX_ IV, SV*);