From: Jarkko Hietaniemi Date: Mon, 4 Aug 2003 09:35:55 +0000 (+0000) Subject: Rename DEBUG() and DEB() to PERL_DEBUG() and PERL_DEB(). X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=488b0c7a33e6590f9d65377c476a73506eafed7d;p=p5sagit%2Fp5-mst-13.2.git Rename DEBUG() and DEB() to PERL_DEBUG() and PERL_DEB(). p4raw-id: //depot/perl@20475 --- diff --git a/perl.c b/perl.c index 23d2b95..fb9fd20 100644 --- a/perl.c +++ b/perl.c @@ -1665,7 +1665,7 @@ S_run_body(pTHX_ I32 oldscope) if (!PL_restartop) { DEBUG_x(dump_all()); - DEBUG(PerlIO_printf(Perl_debug_log, "\nEXECUTING...\n\n")); + PERL_DEBUG(PerlIO_printf(Perl_debug_log, "\nEXECUTING...\n\n")); DEBUG_S(PerlIO_printf(Perl_debug_log, "main thread is 0x%"UVxf"\n", PTR2UV(thr))); diff --git a/perl.h b/perl.h index 8d12c2b..46ce72b 100644 --- a/perl.h +++ b/perl.h @@ -2553,8 +2553,8 @@ Gid_t getegid (void); # define DEBUG_v_TEST DEBUG_v_TEST_ # define DEBUG_C_TEST DEBUG_C_TEST_ -# define DEB(a) a -# define DEBUG(a) if (PL_debug) a +# define PERL_DEB(a) a +# define PERL_DEBUG(a) if (PL_debug) a # define DEBUG_p(a) if (DEBUG_p_TEST) a # define DEBUG_s(a) if (DEBUG_s_TEST) a # define DEBUG_l(a) if (DEBUG_l_TEST) a @@ -2616,8 +2616,8 @@ Gid_t getegid (void); # define DEBUG_v_TEST (0) # define DEBUG_C_TEST (0) -# define DEB(a) -# define DEBUG(a) +# define PERL_DEB(a) +# define PERL_DEBUG(a) # define DEBUG_p(a) # define DEBUG_s(a) # define DEBUG_l(a) @@ -2704,14 +2704,14 @@ Gid_t getegid (void); #ifndef assert /* might have been included somehow */ #ifdef DEBUGGING -#define assert(what) DEB( { \ +#define assert(what) PERL_DEB( { \ if (!(what)) { \ Perl_croak(aTHX_ "Assertion " STRINGIFY(what) " failed: file \"%s\", line %d", \ __FILE__, __LINE__); \ PerlProc_exit(1); \ }}) #else -#define assert(what) DEB( { \ +#define assert(what) PERL_DEB( { \ if (!(what)) { \ Perl_croak(aTHX_ "Assertion failed: file \"%s\", line %d", \ __FILE__, __LINE__); \