mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
glr2.cc: add support for parse.assert
* data/skeletons/glr2.cc: Fake support of parse.assert, so that the tests can use it without failing.
This commit is contained in:
@@ -456,7 +456,6 @@ static YYLTYPE yyloc_default][]b4_yyloc_default;])[
|
||||
[#include <cstdio>
|
||||
#include <cstdlib>
|
||||
|
||||
|
||||
#ifndef YY_
|
||||
# if defined YYENABLE_NLS && YYENABLE_NLS
|
||||
# if ENABLE_NLS
|
||||
@@ -504,6 +503,8 @@ static YYLTYPE yyloc_default][]b4_yyloc_default;])[
|
||||
]b4_null_define[
|
||||
]b4_cast_define[
|
||||
|
||||
// FIXME: Use the same conventions as lalr1.cc.
|
||||
]b4_parse_assert_if[
|
||||
#ifndef YYASSERT
|
||||
# define YYASSERT(Condition) ((void) ((Condition) || (abort (), 0)))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user