Move YYDEBUG into header. No functional change intended.

This commit is contained in:
Wilson Snyder 2020-11-14 10:20:27 -05:00
parent 297b297bc7
commit f94fcaa8e4
2 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,6 @@ LIBS = $(CFG_LIBS) -lm
CPPFLAGS += -MMD CPPFLAGS += -MMD
CPPFLAGS += -I. -I$(bldsrc) -I$(srcdir) -I$(incdir) -I../../include CPPFLAGS += -I. -I$(bldsrc) -I$(srcdir) -I$(incdir) -I../../include
CPPFLAGS += -DYYDEBUG # Required to get nice error messages
#CPPFLAGS += -DVL_LEAK_CHECKS # If running valgrind or other hunting tool #CPPFLAGS += -DVL_LEAK_CHECKS # If running valgrind or other hunting tool
CPPFLAGS += $(COPT) CPPFLAGS += $(COPT)
CPPFLAGS += -MP # Only works on recent GCC versions CPPFLAGS += -MP # Only works on recent GCC versions

View File

@ -14,6 +14,8 @@
// //
//************************************************************************* //*************************************************************************
#define YYDEBUG 1 // Nicer errors
#include "V3Ast.h" // This must be before V3ParseBison.cpp, as we don't want #defines to conflict #include "V3Ast.h" // This must be before V3ParseBison.cpp, as we don't want #defines to conflict
//====================================================================== //======================================================================