From: Theophile Ranquet Date: Fri, 4 Jan 2013 17:52:21 +0000 (+0100) Subject: glr.cc: fatal if using api.token.ctor without variants X-Git-Tag: v2.7.90~187 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/0707d0c7fabeb319933aaea1bb7aa5d68101ac47 glr.cc: fatal if using api.token.ctor without variants * data/glr.cc: Here. --- diff --git a/data/glr.cc b/data/glr.cc index 8b9bf02f..5f5a96f4 100644 --- a/data/glr.cc +++ b/data/glr.cc @@ -43,6 +43,12 @@ # 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])