Debug Mode
- No longer generates parsing diagrams if debug mode is off.
This commit is contained in:
@@ -1990,6 +1990,8 @@ bool A3::is_operator (
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void A3::dump (const std::string& label)
|
||||
{
|
||||
if (context.config.getBoolean ("debug"))
|
||||
{
|
||||
// Set up a color mapping.
|
||||
std::map <int, Color> color_map;
|
||||
@@ -2055,5 +2057,6 @@ void A3::dump (const std::string& label)
|
||||
out << view.render ();
|
||||
context.debug (out.str ());
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user