Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 30, 2011, 11:06:36 PM (13 years ago)
Author:
landauf
Message:

Replaced COUT in util with orxout.
Used user_error for Exceptions and Assertions because I assume they're only used in very critical situations. Same with Signal Handler.
Clipboard shows user_errors because it's used only with user interaction.
Other output is mostly internal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/util/ExprParser.h

    r8351 r8804  
    5555            if (!expr.getRemains().empty())
    5656            {
    57                 COUT(2) << "Warning: Expression could not be parsed to the end! Remains: '" << expr.getRemains() << '\'' << std::endl;
     57                orxout(user_warning) << "Expression could not be parsed to the end! Remains: '" << expr.getRemains() << '\'' << endl;
    5858            }
    5959            float result = expr.getResult();
    6060        }
    6161        else
    62             COUT(1) << "Error: Cannot calculate expression: Parse error." << std::endl;
     62            orxout(user_error) << "Cannot calculate expression: Parse error." << endl;
    6363        @endcode
    6464        getRemains() returns the expression after what could be parsed. For instance
Note: See TracChangeset for help on using the changeset viewer.