Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 31, 2011, 5:15:13 PM (14 years ago)
Author:
landauf
Message:

Replaced COUT with orxout in core. Tried to set levels and contexts in a more or less useful way, but not really optimized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/core/Core.cc

    r8799 r8806  
    128128            catch (...)
    129129            {
    130                 COUT(1) << "Couldn't load module \"" << *it << "\": " << Exception::handleMessage() << std::endl;
     130                orxout(user_error) << "Couldn't load module \"" << *it << "\": " << Exception::handleMessage() << endl;
    131131            }
    132132        }
     
    203203            }
    204204            else
    205                 COUT(0) << "Error: Could not open file for documentation writing" << endl;
     205                orxout(internal_error) << "Could not open file for documentation writing" << endl;
    206206        }
    207207    }
     
    321321        {
    322322            // Exit the application if the Ogre config dialog was canceled
    323             COUT(1) << Exception::handleMessage() << std::endl;
     323            orxout(user_error) << Exception::handleMessage() << endl;
    324324            exit(EXIT_FAILURE);
    325325        }
     
    332332            // and reloaded between throw and catch (access violation in MSVC).
    333333            // That's why we abort completely and only display the exception.
    334             COUT(1) << "An exception occurred during upgrade to graphics. "
    335                     << "That is unrecoverable. The message was:" << endl
    336                     << Exception::handleMessage() << endl;
     334            orxout(user_error) << "An exception occurred during upgrade to graphics. "
     335                               << "That is unrecoverable. The message was:" << endl
     336                               << Exception::handleMessage() << endl;
    337337            abort();
    338338        }
     
    368368        catch (...)
    369369        {
    370             COUT(0) << "An exception occurred during 'unloadGraphics':" << Exception::handleMessage() << std::endl
    371                     << "Another exception might be being handled which may lead to undefined behaviour!" << std::endl
    372                     << "Terminating the program." << std::endl;
     370            orxout(user_error) << "An exception occurred during 'unloadGraphics':" << Exception::handleMessage() << endl
     371                               << "Another exception might be being handled which may lead to undefined behaviour!" << endl
     372                               << "Terminating the program." << endl;
    373373            abort();
    374374        }
Note: See TracChangeset for help on using the changeset viewer.