diff options
Diffstat (limited to 'data/skeletons/glr2.cc')
-rw-r--r-- | data/skeletons/glr2.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/data/skeletons/glr2.cc b/data/skeletons/glr2.cc index d5f21645..6d3ce093 100644 --- a/data/skeletons/glr2.cc +++ b/data/skeletons/glr2.cc @@ -208,15 +208,6 @@ m4_define([b4_shared_declarations], [[# include ]b4_location_include])[ ]b4_variant_if([b4_variant_includes])[ -// Whether we are compiled with exception support. -#ifndef YY_EXCEPTIONS -# if defined __GNUC__ && !defined __EXCEPTIONS -# define YY_EXCEPTIONS 0 -# else -# define YY_EXCEPTIONS 1 -# endif -#endif - ]b4_YYDEBUG_define[ class glr_stack; @@ -457,6 +448,15 @@ static ]b4_namespace_ref[::]b4_parser_class[::value_type yyval_default; # endif #endif +// Whether we are compiled with exception support. +#ifndef YY_EXCEPTIONS +# if defined __GNUC__ && !defined __EXCEPTIONS +# define YY_EXCEPTIONS 0 +# else +# define YY_EXCEPTIONS 1 +# endif +#endif + #ifndef YYFREE # define YYFREE free #endif |