From 26a4d3c8956b60735ba36744ef6047429e429fe3 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 28 Jan 2013 14:55:14 +0100 Subject: [PATCH] tests: enable support for --debug * tests/c++.at (Variants): Here. And remove useless clutter when api.token.constructor is enabled. --- tests/c++.at | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/c++.at b/tests/c++.at index 9b52900f..0f3d2354 100644 --- a/tests/c++.at +++ b/tests/c++.at @@ -113,7 +113,7 @@ AT_CLEANUP m4_pushdef([AT_TEST], [AT_SETUP([Variants $1]) -AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc" $1]) +AT_BISON_OPTION_PUSHDEFS([%skeleton "lalr1.cc" %debug $1]) # Store strings and integers in a list of strings. AT_DATA_GRAMMAR([list.yy], [[%debug @@ -203,13 +203,13 @@ item: | NUMBER { if ($][1 == 3) YYERROR; else $][$ = string_cast ($][1); } ; %% - -#ifdef TWO_STAGE_BUILD +]AT_TOKEN_CTOR_IF([], +[[#ifdef TWO_STAGE_BUILD # define BUILD(Type, Value) build () = Value #else # define BUILD(Type, Value) build (Value) #endif - +]])[ #define STAGE_MAX 5 namespace yy { -- 2.45.2