]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - Types.xs
Update ptable.h
[perl/modules/Lexical-Types.git] / Types.xs
index 324594905e298dee7eae05ceb6a0fa335fa93512..8ff68ada6755bbcc54d77beb2ffc613cbd84f68d 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
@@ -579,6 +587,8 @@ STATIC OP *lt_ck_padany(pTHX_ OP *o) {
    croak(__PACKAGE__ " mangler should return zero, one or two scalars, but got %d", items);
   if (items == 0) {
    SvREFCNT_dec(orig_pkg);
+   FREETMPS;
+   LEAVE;
    goto skip;
   } else {
    SV *rsv;
@@ -742,9 +752,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