X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=blobdiff_plain;f=Magic.xs;h=cf5bc21472701075610c731a660948e45cbc9404;hp=9a5a04f152334809b09ece05e18b4830fec68fd4;hb=ea4de64c75c0516d7cc92a586c9f8b76465ca130;hpb=4bd785b430cf478b6cbf5b2cfe5cc1a9a9f72203 diff --git a/Magic.xs b/Magic.xs index 9a5a04f..cf5bc21 100644 --- a/Magic.xs +++ b/Magic.xs @@ -49,12 +49,17 @@ #endif #ifndef VMG_MULTIPLICITY -# if defined(MULTIPLICITY) || defined(PERL_IMPLICIT_CONTEXT) +# if defined(MULTIPLICITY) # define VMG_MULTIPLICITY 1 # else # define VMG_MULTIPLICITY 0 # endif #endif +#if VMG_MULTIPLICITY +# ifndef PERL_IMPLICIT_CONTEXT +# error MULTIPLICITY builds must set PERL_IMPLICIT_CONTEXT +# endif +#endif #if VMG_MULTIPLICITY && defined(USE_ITHREADS) && defined(dMY_CXT) && defined(MY_CXT) && defined(START_MY_CXT) && defined(MY_CXT_INIT) && (defined(MY_CXT_CLONE) || defined(dMY_CXT_SV)) # define VMG_THREADSAFE 1