Calc
- Now that Eval diagnostics in debug mode go to Context, they must be retrieved and displayed.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user