- The 'calc' command (and only the 'calc' command) propagates the rc.debug
  setting to Eval.  This provides the means to debug expression problems.
This commit is contained in:
Paul Beckingham 2014-06-08 13:10:20 -04:00
parent 9390e17871
commit f316413139

View file

@ -59,6 +59,7 @@ int CmdCalc::execute (std::string& output)
e.addSource (namedDates); e.addSource (namedDates);
e.addSource (domSource); e.addSource (domSource);
e.ambiguity (false); // TODO Could/should be configurable. e.ambiguity (false); // TODO Could/should be configurable.
e.debug (context.config.getBoolean ("debug"));
// Compile all the args into one expression. // Compile all the args into one expression.
std::string expression; std::string expression;