]> git.saurik.com Git - bison.git/blobdiff - data/glr.cc
* data/glr.cc, data/lalr1.cc: Using %defines is mandatory.
[bison.git] / data / glr.cc
index 7cd9c10ddc464feba570a1893bea7f1b20cfe7de..d07b5a48b87c4e00ce7c44a2d65ae3de68e51829 100644 (file)
@@ -46,10 +46,13 @@ m4_divert(-1)                                                       -*- C -*-
 #   user must initialize the first positions (in particular the
 #   filename member).
 
-
 # We require a pure interface using locations.
-m4_define([b4_location_flag], [1])
-m4_define([b4_pure_flag],     [1])
+m4_define([b4_locations_flag], [1])
+m4_define([b4_pure_flag],      [1])
+
+# The header is mandatory.
+b4_defines_if([],
+              [m4_fatal(b4_skeleton[: using %defines is mandatory])])
 
 m4_include(b4_pkgdatadir/[c++.m4])
 m4_include(b4_pkgdatadir/[location.cc])