Small test tweaks.
[p5sagit/p5-mst-13.2.git] / malloc.c
index 1bd777a..dc5a69f 100644 (file)
--- a/malloc.c
+++ b/malloc.c
 #     define dTHX              extern int Perl___notused
 #     define WITH_THX(s)       s
 #  endif
+#  ifndef PERL_GET_INTERP
+#     define PERL_GET_INTERP   PL_curinterp
+#  endif
 #endif
 
 #ifndef MUTEX_LOCK
 
 #ifdef DEBUGGING
 #  undef DEBUG_m
-#  define DEBUG_m(a)  if (PL_debug & 128)   a
+#  define DEBUG_m(a)  if (PERL_GET_INTERP && PL_debug & 128)   a
 #endif
 
 /*