diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-01-22 17:32:21 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-01-22 17:32:21 +0000 |
commit | a446a88f1d0ae9b5bdb72150525c08f417f05975 (patch) | |
tree | 5c8813f2f480bcbc08c9f37b13b790ca287f1f5f /perl.h | |
parent | 7719e2416ec63cec924046d8e4d98affa4e7d3b0 (diff) | |
download | perl-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.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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*); |