Changeset 1642 for code/branches/gui/src/core/Exception.h
- Timestamp:
- Jul 23, 2008, 3:37:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/Exception.h
r1638 r1642 40 40 #include <string> 41 41 #include <exception> 42 #include <cassert> 42 43 #include "core/Debug.h" 43 44 … … 129 130 throw SpecificException<Exception::type>(description, __LINE__, __FILE__, __FUNCTIONNAME__) 130 131 132 // define an assert macro that can display a message 133 #ifndef NDEBUG 134 #define OrxAssert(condition, errorMessage) \ 135 condition ? ((void)0) : (orxonox::OutputHandler::getOutStream().setOutputLevel(ORX_ERROR) << errorMessage << std::endl); \ 136 assert(condition); 137 #else 138 #define OrxAssert(condition, errorMessage) ((void)0) 139 #endif 140 131 141 } 132 142
Note: See TracChangeset
for help on using the changeset viewer.