]> git.saurik.com Git - bison.git/blobdiff - data/bison.m4
also support $<foo>$ in the %initial-action
[bison.git] / data / bison.m4
index 9a66d884961ec26a56e98874e0f59e33d3044b89..178134a4eca812538622519464a73ce89cb3e785 100644 (file)
@@ -576,3 +576,11 @@ m4_define_default([b4_parse_param], [])
 # The initial column and line.
 m4_define_default([b4_location_initial_column], [1])
 m4_define_default([b4_location_initial_line],   [1])
+
+# Sanity checks.
+b4_percent_define_ifdef([api.prefix],
+[m4_ifdef([b4_prefix],
+[b4_complain_at(b4_percent_define_get_loc([api.prefix]),
+                [['%s' and '%s' cannot be used together]],
+                [%name-prefix],
+                [%define api.prefix])])])