[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/6] tests: enable support for --debug
From: |
Akim Demaille |
Subject: |
[PATCH 3/6] tests: enable support for --debug |
Date: |
Mon, 28 Jan 2013 16:34:14 +0100 |
* 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 9b52900..0f3d235 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<Type> () = Value
#else
# define BUILD(Type, Value) build (Value)
#endif
-
+]])[
#define STAGE_MAX 5
namespace yy
{
--
1.8.1.1
- [PATCH 0/6] {master} c++: variant overhaul, Akim Demaille, 2013/01/28
- [PATCH 3/6] tests: enable support for --debug,
Akim Demaille <=
- [PATCH 2/6] c++: revamp the support for variants, Akim Demaille, 2013/01/28
- [PATCH 4/6] c++: remove now-useless operators, Akim Demaille, 2013/01/28
- [PATCH 5/6] tests: remove useless %defines, Akim Demaille, 2013/01/28
- [PATCH 6/6] tests: check that using variants is exception safe, Akim Demaille, 2013/01/28
- [PATCH 1/6] c++: formatting and comment changes, Akim Demaille, 2013/01/28