mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Calc
- Now that Eval diagnostics in debug mode go to Context, they must be retrieved and displayed.
This commit is contained in:
parent
7a85554924
commit
8b682d8565
1 changed files with 5 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue