Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8812 for code/branches/output


Ignore:
Timestamp:
Aug 1, 2011, 8:42:26 PM (13 years ago)
Author:
landauf
Message:

removed COUT, CCOUT, and DOUT macros. COUT is now defined as a deprecated function.

Location:
code/branches/output/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/Orxonox.cc

    r8788 r8812  
    5959#endif
    6060{
     61    using namespace orxonox;
     62
    6163    try
    6264    {
     
    7072        const int firstArgument = 1;
    7173#endif
    72    
     74
    7375        std::string strCmdLine;
    7476        for (int i = firstArgument; i < argc; ++i)
     
    7678#endif
    7779
    78         return orxonox::main(strCmdLine);
     80        return main(strCmdLine);
    7981    }
    8082    catch (...)
    8183    {
    82         COUT(0) << "Orxonox failed to initialise: " << orxonox::Exception::handleMessage() << std::endl;
    83         COUT(0) << "Terminating program." << std::endl;
     84        orxout(user_error) << "Orxonox failed to initialise: " << orxonox::Exception::handleMessage() << endl;
     85        orxout(user_error) << "Terminating program." << endl;
    8486        return 1;
    8587    }
  • code/branches/output/src/OrxonoxConfig.h.in

    r8418 r8812  
    106106#  else
    107107#    define __FUNCTIONNAME__
     108#  endif
     109#endif
     110
     111// Declare a function deprecated
     112#ifndef __DEPRECATED__
     113#  if defined(ORXONOX_COMPILER_GCC)
     114#    define __DEPRECATED__(function) function __attribute__ ((deprecated))
     115#  elif defined(ORXONOX_COMPILER_MSVC)
     116#    define __DEPRECATED__(function) __declspec(deprecated) function
     117#  else
     118#    define __DEPRECATED__(function) function
    108119#  endif
    109120#endif
  • code/branches/output/src/libraries/core/OrxonoxClass.h

    r8729 r8812  
    4949#include <vector>
    5050#include "Super.h"
    51 
    52 /**
    53 @def CCOUT
    54     Acts almost exactly like COUT(x), but prepends "ClassName: "
    55 */
    56 #define CCOUT(level) \
    57     COUT(level) << this->getIdentifier()->getName() << ": "
    5851
    5952namespace orxonox
  • code/branches/output/src/libraries/util/Output.h

    r8808 r8812  
    4949        return orxout(level, context());
    5050    }
     51
     52    // COUT() is deprecated, please use orxout()
     53    inline __DEPRECATED__(OutputStream& COUT(int level));
     54
     55    inline OutputStream& COUT(int)
     56    {
     57        return orxout();
     58    }
    5159}
    5260
    53 #define COUT(level) orxonox::orxout()
    54 #define DOUT orxonox::orxout()
    55 
    5661#endif /* _Output_H__ */
Note: See TracChangeset for help on using the changeset viewer.