From: Vincent Pit Date: Tue, 29 Dec 2009 16:36:52 +0000 (+0100) Subject: Fix for {ENTER,LEAVE}_with_name X-Git-Tag: v0.03~2 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=94379b075db18e2c93b1432b581792ed418c78f2;p=perl%2Fmodules%2FThread-Cleanup.git Fix for {ENTER,LEAVE}_with_name --- diff --git a/Cleanup.xs b/Cleanup.xs index cc55d59..948c38f 100644 --- a/Cleanup.xs +++ b/Cleanup.xs @@ -9,6 +9,14 @@ #define __PACKAGE__ "Thread::Cleanup" #define __PACKAGE_LEN__ (sizeof(__PACKAGE__)-1) +#ifndef ENTER_with_name +# define ENTER_with_name(N) ENTER +#endif + +#ifndef LEAVE_with_name +# define LEAVE_with_name(N) LEAVE +#endif + STATIC void tc_callback(pTHX_ void *); STATIC void tc_callback(pTHX_ void *ud) { @@ -52,7 +60,7 @@ CODE: { level = PerlMemShared_malloc(sizeof *level); *level = 1; - LEAVE; + LEAVE_with_name("sub"); SAVEDESTRUCTOR_X(tc_callback, level); - ENTER; + ENTER_with_name("sub"); }