mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Allow compiling parser in debug mode with -DYYDEBUG=1
This commit is contained in:
@@ -44,7 +44,9 @@ uint32_t nTotalLines, nPC, nIFDepth, nUnionDepth;
|
|||||||
bool skipElif;
|
bool skipElif;
|
||||||
uint32_t unionStart[128], unionSize[128];
|
uint32_t unionStart[128], unionSize[128];
|
||||||
|
|
||||||
/* extern int yydebug; */
|
#if defined(YYDEBUG) && YYDEBUG
|
||||||
|
extern int yydebug;
|
||||||
|
#endif
|
||||||
|
|
||||||
FILE *dependfile;
|
FILE *dependfile;
|
||||||
bool oGeneratedMissingIncludes;
|
bool oGeneratedMissingIncludes;
|
||||||
@@ -335,7 +337,9 @@ int main(int argc, char *argv[])
|
|||||||
if (!cldefines)
|
if (!cldefines)
|
||||||
fatalerror("No memory for command line defines");
|
fatalerror("No memory for command line defines");
|
||||||
|
|
||||||
/* yydebug=1; */
|
#if defined(YYDEBUG) && YYDEBUG
|
||||||
|
yydebug = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
nMaxRecursionDepth = 64;
|
nMaxRecursionDepth = 64;
|
||||||
oGeneratePhonyDeps = false;
|
oGeneratePhonyDeps = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user