Missing WITH_THR from new deb() in ENTER/LEAVE caused builds
Malcolm Beattie [Thu, 12 Feb 1998 17:34:02 +0000 (17:34 +0000)]
with -DUSE_THREADS -DDEBUGGING to fail.

p4raw-id: //depot/perl@512

scope.h

diff --git a/scope.h b/scope.h
index 44bc435..3c38a1f 100644 (file)
--- a/scope.h
+++ b/scope.h
 #define ENTER                                                  \
     STMT_START {                                               \
        push_scope();                                           \
-       DEBUG_l(deb("ENTER scope %ld at %s:%d\n",               \
-                   scopestack_ix, __FILE__, __LINE__));        \
+       DEBUG_l(WITH_THR(deb("ENTER scope %ld at %s:%d\n",      \
+                   scopestack_ix, __FILE__, __LINE__)));       \
     } STMT_END
 #define LEAVE                                                  \
     STMT_START {                                               \
-       DEBUG_l(deb("LEAVE scope %ld at %s:%d\n",               \
-                   scopestack_ix, __FILE__, __LINE__));        \
+       DEBUG_l(WITH_THR(deb("LEAVE scope %ld at %s:%d\n",      \
+                   scopestack_ix, __FILE__, __LINE__)));       \
        pop_scope();                                            \
     } STMT_END
 #else