]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
Make sure MULTIPLICITY builds set PERL_IMPLICIT_CONTEXT
authorVincent Pit <vince@profvince.com>
Tue, 31 Mar 2015 19:08:50 +0000 (16:08 -0300)
committerVincent Pit <vince@profvince.com>
Tue, 31 Mar 2015 19:08:50 +0000 (16:08 -0300)
indirect.xs

index fd742ebf9cac5c72a1402df39a04e544b8d2a80c..d8e7d0deb9d21ebc25cbfa683a86c84e9db71af8 100644 (file)
 #endif
 
 #ifndef I_MULTIPLICITY
-# if defined(MULTIPLICITY) || defined(PERL_IMPLICIT_CONTEXT)
+# if defined(MULTIPLICITY)
 #  define I_MULTIPLICITY 1
 # else
 #  define I_MULTIPLICITY 0
 # endif
 #endif
+#if I_MULTIPLICITY
+# ifndef PERL_IMPLICIT_CONTEXT
+#  error MULTIPLICITY builds must set PERL_IMPLICIT_CONTEXT
+# endif
+#endif
 #if I_MULTIPLICITY && !defined(tTHX)
 # define tTHX PerlInterpreter*
 #endif