diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-08-20 22:09:56 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-08-20 22:09:56 +0000 |
commit | 0b250b9ef0d5134fdb23236140643970d9a3fbf5 (patch) | |
tree | a52a796a40962c0da4fa92e95a0c89c387b22e70 /malloc.c | |
parent | 4e1d07de7db222a9341b2f3ef89b3df9eeacbf4f (diff) | |
download | perl-0b250b9ef0d5134fdb23236140643970d9a3fbf5.tar.gz |
DEBUG_m() adjusted to internalize dTHX
p4raw-id: //depot/perl@4013
Diffstat (limited to 'malloc.c')
-rw-r--r-- | malloc.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -311,7 +311,10 @@ #ifdef DEBUGGING # undef DEBUG_m -# define DEBUG_m(a) if (PERL_GET_INTERP && PL_debug & 128) a +# define DEBUG_m(a) \ + STMT_START { \ + if (PERL_GET_INTERP) { dTHX; if (PL_debug & 128) { a; } } \ + } STMT_END #endif /* @@ -902,9 +905,12 @@ Perl_malloc(register size_t nbytes) if ((p = nextf[bucket]) == NULL) { MALLOC_UNLOCK; #ifdef PERL_CORE - if (!PL_nomemok) { - PerlIO_puts(PerlIO_stderr(),"Out of memory!\n"); - WITH_THX(my_exit(1)); + { + dTHX; + if (!PL_nomemok) { + PerlIO_puts(PerlIO_stderr(),"Out of memory!\n"); + my_exit(1); + } } #else return (NULL); |