Changeset 8858 for code/trunk/src/libraries/util/OrxAssert.h
- Timestamp:
- Aug 23, 2011, 12:45:53 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 1 build 2 2 codeblocks 3 vs 3 4 dependencies
-
- Property svn:mergeinfo changed
/code/branches/output (added) merged: 8739-8740,8765,8771-8772,8774-8780,8787-8789,8794-8799,8801,8803-8812,8814,8816-8817,8820,8822,8825-8837,8840,8844,8846,8848-8850,8853-8854
- Property svn:ignore
-
code/trunk/src/libraries/util/OrxAssert.h
r8372 r8858 40 40 41 41 #include <cassert> 42 #include " Debug.h"42 #include "Output.h" 43 43 44 44 #ifndef NDEBUG … … 46 46 /** Run time assertion like assert(), but with an embedded message. 47 47 @details 48 The message will be printed as error with COUT(1). <br>48 The message will be printed as error with orxout(user_error). <br> 49 49 You can use the same magic here as you can with \ref ThrowException 50 50 @code … … 57 57 if (!(condition)) \ 58 58 { \ 59 COUT(1) << __FILE__ << "(" << __LINE__ << "): "; \60 COUT(1) << "Assertion failed in " << __FUNCTIONNAME__ << std::endl; \61 COUT(1) << "Expression: " << #condition << std::endl; \62 COUT(1) << "Message : " << errorMessage << std::endl; \59 orxout(user_error) << __FILE__ << "(" << __LINE__ << "): "; \ 60 orxout(user_error) << "Assertion failed in " << __FUNCTIONNAME__ << endl; \ 61 orxout(user_error) << "Expression: " << #condition << endl; \ 62 orxout(user_error) << "Message : " << errorMessage << endl; \ 63 63 /* Don't use the condition again to avoid double evaluation */ \ 64 64 /* Instead, stringify the expression and negate it */ \ … … 70 70 mode (no abort() triggered then). 71 71 @details 72 The message will be printed as error with COUT(1). <br>72 The message will be printed as error with orxout(user_error). <br> 73 73 You can use the same magic here as you can with \ref ThrowException 74 74 @code … … 81 81 if (!(condition)) \ 82 82 { \ 83 COUT(1) << __FILE__ << "(" << __LINE__ << "): "; \84 COUT(1) << "Verification failed in " << __FUNCTIONNAME__ << std::endl; \85 COUT(1) << "Expression: " << #condition << std::endl; \86 COUT(1) << "Message : " << errorMessage << std::endl; \83 orxout(user_error) << __FILE__ << "(" << __LINE__ << "): "; \ 84 orxout(user_error) << "Verification failed in " << __FUNCTIONNAME__ << endl; \ 85 orxout(user_error) << "Expression: " << #condition << endl; \ 86 orxout(user_error) << "Message : " << errorMessage << endl; \ 87 87 /* Don't use the condition again to avoid double evaluation */ \ 88 88 /* Instead, stringify the expression and negate it */ \ … … 100 100 if (!(condition)) \ 101 101 { \ 102 COUT(1) << __FILE__ << "(" << __LINE__ << "): "; \103 COUT(1) << "Verification failed in " << __FUNCTIONNAME__ << std::endl; \104 COUT(1) << "Expression: " << #condition << std::endl; \105 COUT(1) << "Message : " << errorMessage << std::endl; \102 orxout(user_error) << __FILE__ << "(" << __LINE__ << "): "; \ 103 orxout(user_error) << "Verification failed in " << __FUNCTIONNAME__ << endl; \ 104 orxout(user_error) << "Expression: " << #condition << endl; \ 105 orxout(user_error) << "Message : " << errorMessage << endl; \ 106 106 /* No assert() in release configuration */ \ 107 107 } \
Note: See TracChangeset
for help on using the changeset viewer.