Changeset 8812
- Timestamp:
- Aug 1, 2011, 8:42:26 PM (13 years ago)
- Location:
- code/branches/output/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/Orxonox.cc
r8788 r8812 59 59 #endif 60 60 { 61 using namespace orxonox; 62 61 63 try 62 64 { … … 70 72 const int firstArgument = 1; 71 73 #endif 72 74 73 75 std::string strCmdLine; 74 76 for (int i = firstArgument; i < argc; ++i) … … 76 78 #endif 77 79 78 return orxonox::main(strCmdLine);80 return main(strCmdLine); 79 81 } 80 82 catch (...) 81 83 { 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; 84 86 return 1; 85 87 } -
code/branches/output/src/OrxonoxConfig.h.in
r8418 r8812 106 106 # else 107 107 # 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 108 119 # endif 109 120 #endif -
code/branches/output/src/libraries/core/OrxonoxClass.h
r8729 r8812 49 49 #include <vector> 50 50 #include "Super.h" 51 52 /**53 @def CCOUT54 Acts almost exactly like COUT(x), but prepends "ClassName: "55 */56 #define CCOUT(level) \57 COUT(level) << this->getIdentifier()->getName() << ": "58 51 59 52 namespace orxonox -
code/branches/output/src/libraries/util/Output.h
r8808 r8812 49 49 return orxout(level, context()); 50 50 } 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 } 51 59 } 52 60 53 #define COUT(level) orxonox::orxout()54 #define DOUT orxonox::orxout()55 56 61 #endif /* _Output_H__ */
Note: See TracChangeset
for help on using the changeset viewer.