]> git.vpit.fr Git - perl/modules/Lexical-Types.git/commitdiff
Fix for {ENTER,LEAVE}_with_name
authorVincent Pit <vince@profvince.com>
Tue, 29 Dec 2009 16:30:01 +0000 (17:30 +0100)
committerVincent Pit <vince@profvince.com>
Tue, 29 Dec 2009 16:30:01 +0000 (17:30 +0100)
Types.xs

index 324594905e298dee7eae05ceb6a0fa335fa93512..7f653838b11f09c6e98bbf204cef274ab464437a 100644 (file)
--- a/Types.xs
+++ b/Types.xs
 # define SvREFCNT_inc_simple_NN SvREFCNT_inc
 #endif
 
+#ifndef ENTER_with_name
+# define ENTER_with_name(N) ENTER
+#endif
+
+#ifndef LEAVE_with_name
+# define LEAVE_with_name(N) LEAVE
+#endif
+
 /* ... Thread safety and multiplicity ...................................... */
 
 #ifndef LT_MULTIPLICITY
@@ -742,9 +750,9 @@ CODE:
  {
   level = PerlMemShared_malloc(sizeof *level);
   *level = 1;
-  LEAVE;
+  LEAVE_with_name("sub");
   SAVEDESTRUCTOR_X(lt_thread_cleanup, level);
-  ENTER;
+  ENTER_with_name("sub");
  }
 
 #endif