Changeset 3149 for code/branches/pch/src/util
- Timestamp:
- Jun 12, 2009, 10:17:44 AM (16 years ago)
- Location:
- code/branches/pch/src/util
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/util/Exception.h
r3068 r3149 123 123 throw InternalHandleException(type##Exception(description, __LINE__, __FILE__, __FUNCTIONNAME__)) 124 124 125 // define an assert macro that can display a message126 #ifndef NDEBUG127 #define OrxAssert(Assertion, ErrorMessage) \128 Assertion ? ((void)0) : (void)(orxonox::OutputHandler::getOutStream().setOutputLevel(ORX_ERROR) << ErrorMessage << std::endl); \129 assert(Assertion)130 #else131 #define OrxAssert(condition, errorMessage) ((void)0)132 #endif133 134 125 #endif /* _Exception_H__ */
Note: See TracChangeset
for help on using the changeset viewer.