]> git.vpit.fr Git - perl/modules/autovivification.git/commitdiff
Make sure MULTIPLICITY builds set PERL_IMPLICIT_CONTEXT
authorVincent Pit <vince@profvince.com>
Sat, 25 Apr 2015 01:39:13 +0000 (22:39 -0300)
committerVincent Pit <vince@profvince.com>
Sat, 25 Apr 2015 01:39:13 +0000 (22:39 -0300)
autovivification.xs

index 4f7a212baa2a829bdf3bd7a95b4cb216920bab3d..222b3a7cae06375674841d622273d5091f0e39e1 100644 (file)
 #endif
 
 #ifndef A_MULTIPLICITY
-# if defined(MULTIPLICITY) || defined(PERL_IMPLICIT_CONTEXT)
+# if defined(MULTIPLICITY)
 #  define A_MULTIPLICITY 1
 # else
 #  define A_MULTIPLICITY 0
 # endif
 #endif
+#if A_MULTIPLICITY
+# ifndef PERL_IMPLICIT_CONTEXT
+#  error MULTIPLICITY builds must set PERL_IMPLICIT_CONTEXT
+# endif
+#endif
 
 #ifndef tTHX
 # define tTHX PerlInterpreter*