From: Vincent Pit Date: Fri, 6 Mar 2009 22:32:34 +0000 (+0100) Subject: Move __PACKAGE__ to a more proper place X-Git-Tag: v0.04~11 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=commitdiff_plain;h=287939132763c340fcbdf4cf0982684de2250ca4 Move __PACKAGE__ to a more proper place --- diff --git a/Types.xs b/Types.xs index 7d50b19..6fa09b1 100644 --- a/Types.xs +++ b/Types.xs @@ -6,6 +6,9 @@ #include "perl.h" #include "XSUB.h" +#define __PACKAGE__ "Lexical::Types" +#define __PACKAGE_LEN__ (sizeof(__PACKAGE__)-1) + /* --- Compatibility wrappers ---------------------------------------------- */ #define LT_HAS_PERL(R, V, S) (PERL_REVISION > (R) || (PERL_REVISION == (R) && (PERL_VERSION > (V) || (PERL_VERSION == (V) && (PERL_SUBVERSION >= (S)))))) @@ -32,9 +35,6 @@ # define HvNAMELEN_get(H) strlen(HvNAME_get(H)) #endif -#define __PACKAGE__ "Lexical::Types" -#define __PACKAGE_LEN__ (sizeof(__PACKAGE__)-1) - /* --- Helpers ------------------------------------------------------------- */ /* ... Hints ............................................................... */