X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Types.xs;h=7f653838b11f09c6e98bbf204cef274ab464437a;hb=103bcf77697abc23bcb4f82a6c43025856eef980;hp=324594905e298dee7eae05ceb6a0fa335fa93512;hpb=b4e0a25b8c7e0703aeb75dc53b344a7d898832bf;p=perl%2Fmodules%2FLexical-Types.git diff --git a/Types.xs b/Types.xs index 3245949..7f65383 100644 --- a/Types.xs +++ b/Types.xs @@ -39,6 +39,14 @@ # 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