summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-08-20 22:09:56 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-08-20 22:09:56 +0000
commit0b250b9ef0d5134fdb23236140643970d9a3fbf5 (patch)
treea52a796a40962c0da4fa92e95a0c89c387b22e70 /perl.h
parent4e1d07de7db222a9341b2f3ef89b3df9eeacbf4f (diff)
downloadperl-0b250b9ef0d5134fdb23236140643970d9a3fbf5.tar.gz
DEBUG_m() adjusted to internalize dTHX
p4raw-id: //depot/perl@4013
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 17de5c66d1..f2cf7725e7 100644
--- a/perl.h
+++ b/perl.h
@@ -1949,7 +1949,10 @@ Gid_t getegid (void);
# if defined(PERL_OBJECT)
# define DEBUG_m(a) if (PL_debug & 128) a
# else
-# 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
#define DEBUG_f(a) if (PL_debug & 256) a
#define DEBUG_r(a) if (PL_debug & 512) a