]> git.saurik.com Git - bison.git/commitdiff
glr.cc: fatal if using api.token.ctor without variants
authorTheophile Ranquet <ranquet@lrde.epita.fr>
Fri, 4 Jan 2013 17:52:21 +0000 (18:52 +0100)
committerTheophile Ranquet <ranquet@lrde.epita.fr>
Fri, 11 Jan 2013 17:57:09 +0000 (18:57 +0100)
* data/glr.cc: Here.

data/glr.cc

index 8b9bf02f2bc16a6f6210c2fce1a1492e7e85ab09..5f5a96f4d32f707f4d6d7e8215f54637e06ad918 100644 (file)
 #   user must initialize the first positions (in particular the
 #   filename member).
 
 #   user must initialize the first positions (in particular the
 #   filename member).
 
+b4_token_ctor_if([b4_variant_if([],
+  [b4_fatal_at(b4_percent_define_get_loc(api.token.constructor),
+               [cannot use '%s' without '%s'],
+               [%define api.token.constructor],
+               [%define api.value.type variant]))])])
+
 # We require a pure interface.
 m4_define([b4_pure_flag],      [1])
 
 # We require a pure interface.
 m4_define([b4_pure_flag],      [1])