Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 20, 2011, 4:05:32 PM (14 years ago)
Author:
rgrieder
Message:

Added new output macro: DOUT. Use this instead of COUT(0) to produce temporary debug output.
If available, such output will be shown in vivid colours and with a "+++ " prefix.

Any occurrence of this macro in the trunk will be dealt with swiftly and painlessly (it's very easy to search for it).

Location:
code/branches/unity_build/src/libraries
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/src/libraries/core/command/IOConsoleWindows.cc

    r7287 r8522  
    208208        case Shell::Command: colour =                        FOREGROUND_GREEN                  | FOREGROUND_BLUE; break;
    209209        case Shell::Hint:    colour =                        FOREGROUND_GREEN | FOREGROUND_RED                  ; break;
     210        case Shell::TDebug:  colour = FOREGROUND_INTENSITY                    | FOREGROUND_RED | FOREGROUND_BLUE; break;
    210211        default:             colour =                        FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_BLUE; break;
    211212        }
  • code/branches/unity_build/src/libraries/core/command/Shell.h

    r8518 r8522  
    9191            enum LineType
    9292            {
     93                TDebug  = OutputLevel::TDebug,
    9394                None    = OutputLevel::None,
    9495                Warning = OutputLevel::Warning,
  • code/branches/unity_build/src/libraries/util/Debug.h

    r8518 r8522  
    123123            orxonox::OutputHandler::getOutStream(level)
    124124
     125/** Logs debug output: You can use DOUT exactly like @c std::cout.
     126    Use this macro to produce temporary debug output that will be removed later on.
     127    The console output shall have a special colour if available.
     128*/
     129#define DOUT orxonox::OutputHandler::getOutStream(-1) << "+++ "
     130
    125131#endif /* _Util_Debug_H__ */
  • code/branches/unity_build/src/libraries/util/OutputHandler.h

    r8518 r8522  
    6262        enum Value
    6363        {
     64            TDebug  = -1,
    6465            None    = 0,
    6566            Error   = 1,
Note: See TracChangeset for help on using the changeset viewer.