- Now that Eval diagnostics in debug mode go to Context, they must be retrieved
  and displayed.
This commit is contained in:
Paul Beckingham 2014-08-31 11:20:46 -04:00
parent 7a85554924
commit 8b682d8565

View file

@ -140,6 +140,11 @@ int main (int argc, char** argv)
else
e.evaluatePostfixExpression (expression, result);
// Show any debug output.
std::vector <std::string>::iterator i;
for (i = context.debugMessages.begin (); i != context.debugMessages.end (); ++i)
std::cout << *i << "\n";
// Show the result in string form.
std::cout << (std::string) result
<< "\n";