X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c3e9f08f93bc8bbabcd4f4093e52ad8f8b5454ca..56ca3d8fce0c9db2f2829d7a7a07a9ad06cdf6a8:/data/c.m4 diff --git a/data/c.m4 b/data/c.m4 index 64f68fec..78b12325 100644 --- a/data/c.m4 +++ b/data/c.m4 @@ -567,3 +567,15 @@ typedef struct YYLTYPE # define YYLTYPE_IS_TRIVIAL 1 #endif]]) ]) + +# b4_declare_yydebug +# ------------------ +m4_define([b4_declare_yydebug], +[[/* Enabling traces. */ +#ifndef YYDEBUG +# define YYDEBUG ]b4_debug_flag[ +#endif +#if YYDEBUG +extern int ]b4_prefix[debug; +#endif][]dnl +])