# define SvREFCNT_inc_simple_NN SvREFCNT_inc
#endif
-#ifndef ENTER_with_name
-# define ENTER_with_name(N) ENTER
+#undef ENTERn
+#if defined(ENTER_with_name) && !LT_HAS_PERL(5, 11, 4)
+# define ENTERn(N) ENTER_with_name(N)
+#else
+# define ENTERn(N) ENTER
#endif
-#ifndef LEAVE_with_name
-# define LEAVE_with_name(N) LEAVE
+#undef LEAVEn
+#if defined(LEAVE_with_name) && !LT_HAS_PERL(5, 11, 4)
+# define LEAVEn(N) LEAVE_with_name(N)
+#else
+# define LEAVEn(N) LEAVE
#endif
/* ... Thread safety and multiplicity ...................................... */
{
level = PerlMemShared_malloc(sizeof *level);
*level = 1;
- LEAVE_with_name("sub");
+ LEAVEn("sub");
SAVEDESTRUCTOR_X(lt_thread_cleanup, level);
- ENTER_with_name("sub");
+ ENTERn("sub");
}
XSRETURN(0);